diff options
author | snowleo <schneeleo@gmail.com> | 2012-02-05 18:29:37 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-02-05 18:29:37 +0100 |
commit | 1078b7b5f28597b28232519621b8d540aaebef4e (patch) | |
tree | f5fead777af1fc997a9a7cbccb8375919e8add03 /EssentialsSigns | |
parent | f908eee76c9c3ad14a010b9b3898afcdcc5834d0 (diff) | |
download | Essentials-1078b7b5f28597b28232519621b8d540aaebef4e.tar Essentials-1078b7b5f28597b28232519621b8d540aaebef4e.tar.gz Essentials-1078b7b5f28597b28232519621b8d540aaebef4e.tar.lz Essentials-1078b7b5f28597b28232519621b8d540aaebef4e.tar.xz Essentials-1078b7b5f28597b28232519621b8d540aaebef4e.zip |
copy&paste fail
Diffstat (limited to 'EssentialsSigns')
-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; |