summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/api/IPermission.java
blob: 01e1a729a373f4fbceaf118fd74a445d561b8302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);

	String getParentPermission();

	PermissionDefault getPermissionDefault();
}