From 7beab59c1ab49c2d11aee745b1a60e34dbd6f5b4 Mon Sep 17 00:00:00 2001 From: Alexander Schepp Date: Sat, 4 Aug 2012 14:17:41 +0300 Subject: [PATCH] Fix /gamemode 2 playername --- .../src/com/earth2me/essentials/commands/Commandgamemode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java b/Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java index 75971a37b..39f7d936a 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java @@ -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;