* node bug fix

This commit is contained in:
Michel Roux 2012-05-09 14:47:08 +02:00
parent 343a4cdc24
commit a1ea62ee7f

View File

@ -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;