From ff4b85fcf4d06fb680a673de69bb7dafcf0e6645 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 9 Apr 2013 12:57:33 +0200 Subject: [PATCH] Add in comment sepparators like in other MCore based plugins. --- src/com/massivecraft/factions/Perm.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/com/massivecraft/factions/Perm.java b/src/com/massivecraft/factions/Perm.java index ca9970fa..f207d9a5 100644 --- a/src/com/massivecraft/factions/Perm.java +++ b/src/com/massivecraft/factions/Perm.java @@ -4,6 +4,10 @@ import org.bukkit.command.CommandSender; public enum Perm { + // -------------------------------------------- // + // ENUM + // -------------------------------------------- // + ACCESS("access"), ACCESS_ANY("access.any"), ACCESS_VIEW("access.view"), @@ -62,15 +66,29 @@ public enum Perm UNCLAIM("unclaim"), UNCLAIM_ALL("unclaimall"), VERSION("version"), + + // END OF LIST ; + // -------------------------------------------- // + // FIELDS + // -------------------------------------------- // + public final String node; + // -------------------------------------------- // + // CONSTRUCT + // -------------------------------------------- // + Perm(final String node) { this.node = "factions."+node; } + // -------------------------------------------- // + // HAS + // -------------------------------------------- // + public boolean has(CommandSender sender, boolean informSenderIfNot) { return P.p.perm.has(sender, this.node, informSenderIfNot);