浏览代码

Fix issue with tab-completing /party commands.

GJ 12 年之前
父节点
当前提交
fba131936a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java

+ 1 - 1
src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java

@@ -171,7 +171,7 @@ public class PartyCommand implements TabExecutor {
                     return ImmutableList.of();
                 }
 
-                switch (PartySubcommandType.valueOf(args[0].toUpperCase())) {
+                switch (subcommand) {
                     case JOIN:
                     case INVITE:
                     case KICK: