mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
Ignore case on /gm command
This commit is contained in:
parent
45cd9597c9
commit
bd6614328b
@ -39,7 +39,7 @@ public class Commandgamemode extends EssentialsCommand
|
||||
gamemodeOtherPlayers(server, user, args);
|
||||
return;
|
||||
}
|
||||
performSetMode(args[0], user);
|
||||
performSetMode(args[0].toLowerCase(Locale.ENGLISH), user);
|
||||
user.sendMessage(_("gameMode", _(user.getGameMode().toString().toLowerCase(Locale.ENGLISH)), user.getDisplayName()));
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ public class Commandgamemode extends EssentialsCommand
|
||||
{
|
||||
continue;
|
||||
}
|
||||
performSetMode(args[0], player);
|
||||
performSetMode(args[0].toLowerCase(Locale.ENGLISH), player);
|
||||
sender.sendMessage(_("gameMode", _(player.getGameMode().toString().toLowerCase(Locale.ENGLISH)), player.getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user