Class VaultPermissions
java.lang.Object
us.talabrek.ultimateskyblock.hook.PluginHook
us.talabrek.ultimateskyblock.hook.permissions.PermissionsHook
us.talabrek.ultimateskyblock.hook.permissions.VaultPermissions
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addPermission
(@NotNull org.bukkit.entity.Player player, @NotNull String perk) Add permission to a player ONLY for the world the player is currently on.void
onPermissionRegister
(org.bukkit.event.server.ServiceRegisterEvent event) void
onPermissionUnregister
(org.bukkit.event.server.ServiceUnregisterEvent event) boolean
removePermission
(@NotNull org.bukkit.entity.Player player, @NotNull String perk) Remove permission from a player.Methods inherited from class us.talabrek.ultimateskyblock.hook.permissions.PermissionsHook
hasPermission
Methods inherited from class us.talabrek.ultimateskyblock.hook.PluginHook
getHookName, getImplementing, onHook, onUnhook
-
Constructor Details
-
VaultPermissions
-
-
Method Details
-
addPermission
public boolean addPermission(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String perk) Description copied from class:PermissionsHook
Add permission to a player ONLY for the world the player is currently on. This is a world-specific operation.- Specified by:
addPermission
in classPermissionsHook
- Parameters:
player
- Player Objectperk
- Permission node- Returns:
- Success or Failure
-
removePermission
public boolean removePermission(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String perk) Description copied from class:PermissionsHook
Remove permission from a player. This is a world-specific operation.- Specified by:
removePermission
in classPermissionsHook
- Parameters:
player
- Player Objectperk
- Permission node- Returns:
- Success or Failure
-
onPermissionRegister
public void onPermissionRegister(org.bukkit.event.server.ServiceRegisterEvent event) -
onPermissionUnregister
public void onPermissionUnregister(org.bukkit.event.server.ServiceUnregisterEvent event)
-