diff options
-rw-r--r-- | EssentialsSigns/src/com/earth2me/essentials/signs/SignsPermissions.java | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/EssentialsSigns/src/com/earth2me/essentials/signs/SignsPermissions.java b/EssentialsSigns/src/com/earth2me/essentials/signs/SignsPermissions.java index 911d12593..82c9bdca9 100644 --- a/EssentialsSigns/src/com/earth2me/essentials/signs/SignsPermissions.java +++ b/EssentialsSigns/src/com/earth2me/essentials/signs/SignsPermissions.java @@ -6,14 +6,12 @@ import java.util.HashMap; import java.util.Locale; import java.util.Map; -public class SignsPermissions { - public static final IPermission COLOR = new BasePermission("essentials.signs.","color"); - + +public class SignsPermissions +{ + public static final IPermission COLOR = new BasePermission("essentials.signs.", "color"); public static final IPermission PROTECTION_OVERRIDE = new BasePermission("essentials.signs.protection.", "override"); - public static final IPermission TRADE_OVERRIDE = new BasePermission("essentials.signs.trade.", "override"); - - private static Map<String, IPermission> createpermissions = new HashMap<String, IPermission>(); public static IPermission getCreatePermission(final String signName) @@ -21,12 +19,11 @@ public class SignsPermissions { IPermission perm = createpermissions.get(signName); if (perm == null) { - perm = new BasePermission("essentials.signs.create.",signName.toLowerCase(Locale.ENGLISH)); + perm = new BasePermission("essentials.signs.create.", signName.toLowerCase(Locale.ENGLISH)); createpermissions.put(signName, perm); } return perm; } - private static Map<String, IPermission> usepermissions = new HashMap<String, IPermission>(); public static IPermission getUsePermission(final String signName) @@ -34,12 +31,11 @@ public class SignsPermissions { IPermission perm = usepermissions.get(signName); if (perm == null) { - perm = new BasePermission("essentials.signs.create.",signName.toLowerCase(Locale.ENGLISH)); + perm = new BasePermission("essentials.signs.use.", signName.toLowerCase(Locale.ENGLISH)); usepermissions.put(signName, perm); } return perm; } - private static Map<String, IPermission> breakpermissions = new HashMap<String, IPermission>(); public static IPermission getBreakPermission(final String signName) @@ -47,7 +43,7 @@ public class SignsPermissions { IPermission perm = breakpermissions.get(signName); if (perm == null) { - perm = new BasePermission("essentials.signs.create.",signName.toLowerCase(Locale.ENGLISH)); + perm = new BasePermission("essentials.signs.break.", signName.toLowerCase(Locale.ENGLISH)); breakpermissions.put(signName, perm); } return perm; |