Fix inverted boolean value, fixes #53

This commit is contained in:
vemacs 2015-06-04 08:41:19 -06:00
parent 73ac6488ce
commit a224894380

View File

@ -65,7 +65,7 @@ public class Commandgamemode extends EssentialsCommand {
throw new NotEnoughArgumentsException(tl("gameModeInvalid")); throw new NotEnoughArgumentsException(tl("gameModeInvalid"));
} }
if (sender.isPlayer() && canChangeToMode(sender.getPlayer(), gameMode)) { if (sender.isPlayer() && !canChangeToMode(sender.getPlayer(), gameMode)) {
sender.sendMessage(tl("cantGamemode", gameMode.name())); sender.sendMessage(tl("cantGamemode", gameMode.name()));
return; return;
} }