Ignore case on /gm command

This commit is contained in:
snowleo 2012-08-03 10:41:23 +02:00
parent 45cd9597c9
commit bd6614328b

View File

@ -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()));
}
}