mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-12 19:31:05 +01:00
Fix inverted boolean value, fixes #53
This commit is contained in:
parent
73ac6488ce
commit
a224894380
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user