mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 14:38:56 +00:00
Fix ending
This commit is contained in:
1 parent
889c79e46a
commit
7fb5494885
5 files changed
+33
-3
No files matched your search
@@ -43,15 +43,24 @@ public class WarTabCompletion implements TabCompleter{
|
||||
switch (args[0]) {
|
||||
case "join" -> {
|
||||
if (args.length > 2) {
|
||||
if (args.length > 3) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return NameUtil.filterByStart(CommandHelper.getWarSides(args[1]), args[2]);
|
||||
} else {
|
||||
return NameUtil.filterByStart(CommandHelper.getWarNames(), args[1]);
|
||||
}
|
||||
}
|
||||
case "info" -> {
|
||||
if (args.length > 2) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return NameUtil.filterByStart(CommandHelper.getPlayers(), args[1]);
|
||||
}
|
||||
case "delete", "surrender" -> {
|
||||
if (args.length > 2) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return NameUtil.filterByStart(CommandHelper.getWarNames(), args[1]);
|
||||
}
|
||||
//create, list, help
|
||||
|
||||
Reference in new issue
Block a user