* node bug fix
This commit is contained in:
parent
343a4cdc24
commit
a1ea62ee7f
@ -81,10 +81,7 @@ public abstract class SimplyPrevents implements Listener {
|
||||
}
|
||||
|
||||
protected boolean prevent(Cancellable event, Player player, String node) {
|
||||
if (player.isPermissionSet("permissions.allow.*")
|
||||
&& player.hasPermission("permissions.allow.*")) {
|
||||
return false;
|
||||
} else if (node.contains(",")) {
|
||||
if (node.contains(",")) {
|
||||
for (String subNode : node.split(",")) {
|
||||
if (prevent(event, player, subNode)) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user