* node bug fix

This commit is contained in:
Michel Roux 2012-05-09 14:47:08 +02:00
parent 343a4cdc24
commit a1ea62ee7f
1 changed files with 1 additions and 4 deletions

View File

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