* 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) {
|
protected boolean prevent(Cancellable event, Player player, String node) {
|
||||||
if (player.isPermissionSet("permissions.allow.*")
|
if (node.contains(",")) {
|
||||||
&& player.hasPermission("permissions.allow.*")) {
|
|
||||||
return false;
|
|
||||||
} else if (node.contains(",")) {
|
|
||||||
for (String subNode : node.split(",")) {
|
for (String subNode : node.split(",")) {
|
||||||
if (prevent(event, player, subNode)) {
|
if (prevent(event, player, subNode)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user