1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-29 09:19:51 +02:00

Fix /gamemode 2 playername

This commit is contained in:
Alexander Schepp
2012-08-04 14:17:41 +03:00
parent d06102b76e
commit 125977c899

View File

@@ -34,7 +34,7 @@ public class Commandgamemode extends EssentialsCommand
throw new NotEnoughArgumentsException(); 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); gamemodeOtherPlayers(server, user, args);
return; return;