Attempt to fix issue #122.

This commit is contained in:
SuPaH sPii committed 2012-12-30 12:59:30 -06:00
1 parent 08776d44db
commit ea5e5878bb
2 files changed
+38 -32

No files matched your search

@@ -19,6 +19,7 @@
package net.h31ix.anticheat.util;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public enum Permission {
/* Check Nodes */
@@ -65,6 +66,12 @@ public enum Permission {
return cs.hasPermission(toString());
}
// Now h31ix, I know this is redundant, but this may actually solve the issue.
// So please, just give it a try :P
public boolean get(Player p) {
return p.hasPermission(toString());
}
@Override
public String toString() {
return "anticheat." + this.name().toLowerCase().replace("_", ".");