diff options
author | snowleo <schneeleo@gmail.com> | 2012-10-03 18:16:01 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-10-03 18:16:01 +0200 |
commit | 4a1e26697edd5bd6e9a429efeb3db00ecdac2feb (patch) | |
tree | 5488b2148ee4e2c1cdfa7e7f3b1a8f782884dd07 /EssentialsAntiBuild | |
parent | 58821791ff0b2f29f4ad421a0578876d826bd6ec (diff) | |
download | Essentials-4a1e26697edd5bd6e9a429efeb3db00ecdac2feb.tar Essentials-4a1e26697edd5bd6e9a429efeb3db00ecdac2feb.tar.gz Essentials-4a1e26697edd5bd6e9a429efeb3db00ecdac2feb.tar.lz Essentials-4a1e26697edd5bd6e9a429efeb3db00ecdac2feb.tar.xz Essentials-4a1e26697edd5bd6e9a429efeb3db00ecdac2feb.zip |
Cleanup
Diffstat (limited to 'EssentialsAntiBuild')
-rw-r--r-- | EssentialsAntiBuild/src/net/ess3/antibuild/Permissions.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/EssentialsAntiBuild/src/net/ess3/antibuild/Permissions.java b/EssentialsAntiBuild/src/net/ess3/antibuild/Permissions.java index 250caa4a3..cae97667c 100644 --- a/EssentialsAntiBuild/src/net/ess3/antibuild/Permissions.java +++ b/EssentialsAntiBuild/src/net/ess3/antibuild/Permissions.java @@ -12,12 +12,13 @@ import org.bukkit.permissions.PermissionDefault; public enum Permissions implements IPermission { + BUILD("essentials.", PermissionDefault.TRUE), BLACKLIST_ALLOWPLACEMENT, BLACKLIST_ALLOWUSAGE, BLACKLIST_ALLOWBREAK, ALERTS, ALERTS_NOTRIGGER; - private static final String base = "essentials.build."; + private static final String defaultBase = "essentials.build."; private final String permission; private final PermissionDefault defaultPerm; private transient String parent = null; @@ -29,6 +30,11 @@ public enum Permissions implements IPermission private Permissions(final PermissionDefault defaultPerm) { + this(defaultBase, defaultPerm); + } + + private Permissions(final String base, final PermissionDefault defaultPerm) + { permission = base + toString().toLowerCase(Locale.ENGLISH).replace('_', '.'); this.defaultPerm = defaultPerm; } |