From a2248943806894a4d8ab8d06a5bbe15d00112c2c Mon Sep 17 00:00:00 2001 From: vemacs Date: Thu, 4 Jun 2015 08:41:19 -0600 Subject: [PATCH] Fix inverted boolean value, fixes #53 --- .../src/com/earth2me/essentials/commands/Commandgamemode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java b/Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java index 0b6b58637..2783c6bfc 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java @@ -65,7 +65,7 @@ public class Commandgamemode extends EssentialsCommand { 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())); return; }