mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 16:09:44 +00:00
Fix inverted boolean value, fixes #53
This commit is contained in:
parent
73ac6488ce
commit
a224894380
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue