mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Attempt to fix issue #122.
This commit is contained in:
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("_", ".");
|
||||
|
||||
Reference in new issue
Block a user