File tree Expand file tree Collapse file tree
bootstrap/geyser/src/main/java/com/rtm516/mcxboxbroadcast/bootstrap/geyser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ public void onCommandDefine(GeyserDefineCommandsEvent event) {
7777 return ;
7878 }
7979
80- if (args .length < 3 ) {
81- if (args .length == 2 && args [1 ].equalsIgnoreCase ("list" )) {
80+ if (args .length < 2 ) {
81+ if (args .length == 1 && args [0 ].equalsIgnoreCase ("list" )) {
8282 sessionManager .listSessions ();
8383 return ;
8484 }
@@ -89,15 +89,15 @@ public void onCommandDefine(GeyserDefineCommandsEvent event) {
8989 return ;
9090 }
9191
92- switch (args [1 ].toLowerCase ()) {
92+ switch (args [0 ].toLowerCase ()) {
9393 case "add" :
9494 sessionManager .addSubSession (args [2 ]);
9595 break ;
9696 case "remove" :
9797 sessionManager .removeSubSession (args [2 ]);
9898 break ;
9999 default :
100- source .sendMessage ("Unknown accounts command: " + args [1 ]);
100+ source .sendMessage ("Unknown accounts command: " + args [0 ]);
101101 }
102102 })
103103 .build ());
You can’t perform that action at this time.
0 commit comments