This commit is contained in:
Michel Roux 2012-05-10 10:10:11 +02:00
parent 8dca7e2a9b
commit 971652f3ae

View File

@ -79,8 +79,8 @@ 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 (node.contains(",")) { if (node.contains(",")) {
for (String subNode : node.split(",")) { for (String subNode : node.split(",")) {
if (!prevent(event, player, subNode)) { if (prevent(event, player, subNode)) {
return false; return true;
} }
} }
} else if (node.contains(".")) { } else if (node.contains(".")) {