summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schepp <schneeleo@gmail.com>2012-08-04 14:17:41 +0300
committerAlexander Schepp <schneeleo@gmail.com>2012-08-04 14:17:41 +0300
commit7beab59c1ab49c2d11aee745b1a60e34dbd6f5b4 (patch)
tree2c034d2b0b5007b6f1b1acff2575611368debc7a
parent55c9cacaa34e60079a7b8730af43e22cdf0c32c8 (diff)
downloadEssentials-7beab59c1ab49c2d11aee745b1a60e34dbd6f5b4.tar
Essentials-7beab59c1ab49c2d11aee745b1a60e34dbd6f5b4.tar.gz
Essentials-7beab59c1ab49c2d11aee745b1a60e34dbd6f5b4.tar.lz
Essentials-7beab59c1ab49c2d11aee745b1a60e34dbd6f5b4.tar.xz
Essentials-7beab59c1ab49c2d11aee745b1a60e34dbd6f5b4.zip
Fix /gamemode 2 playername
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandgamemode.java2
1 files changed, 1 insertions, 1 deletions
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;