Fix /gamemode 2 playername

This commit is contained in:
Alexander Schepp 2012-08-04 14:17:41 +03:00
parent 55c9cacaa3
commit 7beab59c1a

View File

@ -34,7 +34,7 @@ public class Commandgamemode extends EssentialsCommand
throw new NotEnoughArgumentsException();
}
if (args.length > 1 && args[0].trim().length() > 2 && user.isAuthorized("essentials.gamemode.others"))
if (args.length > 1 && args[1].trim().length() > 2 && user.isAuthorized("essentials.gamemode.others"))
{
gamemodeOtherPlayers(server, user, args);
return;