mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-26 18:11:52 +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"));
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user