Package fr.Alphart.BAT.Modules.Core
Class PermissionManager
java.lang.Object
fr.Alphart.BAT.Modules.Core.PermissionManager
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canExecuteAction
(PermissionManager.Action action, net.md_5.bungee.api.CommandSender executor, String server) Check if the command sender can exec this action on this serverstatic boolean
isExemptFrom
(PermissionManager.Action action, String target) Check if this entity is an online player (if it's a player) and then return if it is exempt of the specified action
-
Constructor Details
-
PermissionManager
public PermissionManager()
-
-
Method Details
-
canExecuteAction
public static boolean canExecuteAction(PermissionManager.Action action, net.md_5.bungee.api.CommandSender executor, String server) Check if the command sender can exec this action on this server- Parameters:
action
-executor
-server
-- Returns:
- true if he can otherwise false
-
isExemptFrom
Check if this entity is an online player (if it's a player) and then return if it is exempt of the specified action- Parameters:
action
-target
-- Returns:
- true if it is exempt from this action otherwise false
-