diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/perm/Permissions3Handler.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/perm/Permissions3Handler.java | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/Essentials/src/com/earth2me/essentials/perm/Permissions3Handler.java b/Essentials/src/com/earth2me/essentials/perm/Permissions3Handler.java deleted file mode 100644 index 190d5b8c5..000000000 --- a/Essentials/src/com/earth2me/essentials/perm/Permissions3Handler.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.earth2me.essentials.perm; - -import com.nijiko.permissions.PermissionHandler; -import com.nijikokun.bukkit.Permissions.Permissions; -import java.util.Arrays; -import java.util.List; -import org.bukkit.entity.Player; -import org.bukkit.plugin.Plugin; - - -public class Permissions3Handler implements IPermissionsHandler -{ - private final transient PermissionHandler permissionHandler; - - public Permissions3Handler(final Plugin permissionsPlugin) - { - permissionHandler = ((Permissions)permissionsPlugin).getHandler(); - } - - @Override - public String getGroup(final Player base) - { - return permissionHandler.getPrimaryGroup(base.getWorld().getName(), base.getName()); - } - - @Override - public List<String> getGroups(final Player base) - { - return Arrays.asList(permissionHandler.getGroups(base.getWorld().getName(), base.getName())); - } - - @Override - public boolean canBuild(final Player base, final String group) - { - return permissionHandler.canUserBuild(base.getWorld().getName(), base.getName()); - } - - @Override - public boolean inGroup(final Player base, final String group) - { - return permissionHandler.inGroup(base.getWorld().getName(), base.getName(), group); - } - - @Override - public boolean hasPermission(final Player base, final String node) - { - return permissionHandler.has(base, node); - } - - @Override - public String getPrefix(final Player base) - { - return permissionHandler.getUserPrefix(base.getWorld().getName(), base.getName()); - } - - @Override - public String getSuffix(final Player base) - { - return permissionHandler.getUserSuffix(base.getWorld().getName(), base.getName()); - } -} |