mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-02 10:36:39 +00:00
Ignore case on /gm command
This commit is contained in:
parent
45cd9597c9
commit
bd6614328b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue