summaryrefslogtreecommitdiffstats
path: root/EssentialsSigns
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-02-05 18:29:37 +0100
committersnowleo <schneeleo@gmail.com>2012-02-05 18:29:37 +0100
commit1078b7b5f28597b28232519621b8d540aaebef4e (patch)
treef5fead777af1fc997a9a7cbccb8375919e8add03 /EssentialsSigns
parentf908eee76c9c3ad14a010b9b3898afcdcc5834d0 (diff)
downloadEssentials-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.java18
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;