Add in comment sepparators like in other MCore based plugins.

This commit is contained in:
Olof Larsson 2013-04-09 12:57:33 +02:00
parent 971d2004f2
commit ff4b85fcf4

View File

@ -4,6 +4,10 @@ import org.bukkit.command.CommandSender;
public enum Perm public enum Perm
{ {
// -------------------------------------------- //
// ENUM
// -------------------------------------------- //
ACCESS("access"), ACCESS("access"),
ACCESS_ANY("access.any"), ACCESS_ANY("access.any"),
ACCESS_VIEW("access.view"), ACCESS_VIEW("access.view"),
@ -62,15 +66,29 @@ public enum Perm
UNCLAIM("unclaim"), UNCLAIM("unclaim"),
UNCLAIM_ALL("unclaimall"), UNCLAIM_ALL("unclaimall"),
VERSION("version"), VERSION("version"),
// END OF LIST
; ;
// -------------------------------------------- //
// FIELDS
// -------------------------------------------- //
public final String node; public final String node;
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
Perm(final String node) Perm(final String node)
{ {
this.node = "factions."+node; this.node = "factions."+node;
} }
// -------------------------------------------- //
// HAS
// -------------------------------------------- //
public boolean has(CommandSender sender, boolean informSenderIfNot) public boolean has(CommandSender sender, boolean informSenderIfNot)
{ {
return P.p.perm.has(sender, this.node, informSenderIfNot); return P.p.perm.has(sender, this.node, informSenderIfNot);