summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/api/IPermission.java
blob: a3a90f7bf95323300cbc0236ed67a46c577a6ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package net.ess3.api;

import org.bukkit.command.CommandSender;
import org.bukkit.permissions.PermissionDefault;


public interface IPermission
{
	String getPermissionName();

	/**
	 * Checks to see if a user can use this permission
	 *
	 * @param sender - CommandSender to check on
	 * @return - True if they have that permission
	 */
	boolean isAuthorized(CommandSender sender);

	/**
	 *
	 * @return
	 */
	String getParentPermission();

	/**
	 *
	 * @return
	 */
	PermissionDefault getPermissionDefault();
}