From 3a102c324e14afb4e3c50cdf8fef196ab90278fd Mon Sep 17 00:00:00 2001 From: Gnat008 Date: Wed, 15 Jun 2016 15:15:39 -0400 Subject: [PATCH] move bypass permission location --- .../java/fr/xephi/authme/permission/PlayerPermission.java | 7 +------ .../fr/xephi/authme/permission/PlayerStatePermission.java | 7 ++++++- .../authme/permission/handlers/ZPermissionsHandler.java | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/fr/xephi/authme/permission/PlayerPermission.java b/src/main/java/fr/xephi/authme/permission/PlayerPermission.java index 1e7650008..e2932e932 100644 --- a/src/main/java/fr/xephi/authme/permission/PlayerPermission.java +++ b/src/main/java/fr/xephi/authme/permission/PlayerPermission.java @@ -58,12 +58,7 @@ public enum PlayerPermission implements PermissionNode { /** * Permission to use to see own other accounts. */ - SEE_OWN_ACCOUNTS("authme.player.seeownaccounts", DefaultPermission.ALLOWED), - - /** - * Permission to bypass the purging process - */ - BYPASS_PURGE("authme.player.bypasspurge", DefaultPermission.NOT_ALLOWED); + SEE_OWN_ACCOUNTS("authme.player.seeownaccounts", DefaultPermission.ALLOWED); /** * The permission node. diff --git a/src/main/java/fr/xephi/authme/permission/PlayerStatePermission.java b/src/main/java/fr/xephi/authme/permission/PlayerStatePermission.java index fd0239358..d733814eb 100644 --- a/src/main/java/fr/xephi/authme/permission/PlayerStatePermission.java +++ b/src/main/java/fr/xephi/authme/permission/PlayerStatePermission.java @@ -24,7 +24,12 @@ public enum PlayerStatePermission implements PermissionNode { /** * Permission to be able to register multiple accounts. */ - ALLOW_MULTIPLE_ACCOUNTS("authme.allowmultipleaccounts", DefaultPermission.OP_ONLY); + ALLOW_MULTIPLE_ACCOUNTS("authme.allowmultipleaccounts", DefaultPermission.OP_ONLY), + + /** + * Permission to bypass the purging process + */ + BYPASS_PURGE("authme.bypasspurge", DefaultPermission.NOT_ALLOWED); /** * The permission node. diff --git a/src/main/java/fr/xephi/authme/permission/handlers/ZPermissionsHandler.java b/src/main/java/fr/xephi/authme/permission/handlers/ZPermissionsHandler.java index a47461c63..493221097 100644 --- a/src/main/java/fr/xephi/authme/permission/handlers/ZPermissionsHandler.java +++ b/src/main/java/fr/xephi/authme/permission/handlers/ZPermissionsHandler.java @@ -4,7 +4,6 @@ import fr.xephi.authme.permission.PermissionNode; import fr.xephi.authme.permission.PermissionsSystemType; import org.bukkit.Bukkit; import org.bukkit.entity.Player; -import org.bukkit.inventory.meta.BookMeta; import org.tyrannyofheaven.bukkit.zPermissions.ZPermissionsService; import java.util.ArrayList;