mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
awa purgebars, awa load/save framework
This commit is contained in:
1 parent
95175f1057
commit
9d2b8612d2
6 files changed
+109
-7
No files matched your search
@@ -15,7 +15,12 @@ public class AdminTabCompletion implements TabCompleter {
|
||||
"force",
|
||||
"help",
|
||||
"info",
|
||||
"modify"
|
||||
"modify",
|
||||
"purgebars",
|
||||
"load",
|
||||
"load-all",
|
||||
"save",
|
||||
"save-all"
|
||||
});
|
||||
|
||||
List<String> type = List.of(new String[]{
|
||||
@@ -186,7 +191,26 @@ public class AdminTabCompletion implements TabCompleter {
|
||||
} else if (args.length == 1) {
|
||||
return NameUtil.filterByStart(base, args[0]);
|
||||
} else {
|
||||
if (args[0].equalsIgnoreCase("create")) {
|
||||
|
||||
if (args[0].equalsIgnoreCase("purgebars")) {
|
||||
return empty;
|
||||
} else if (args[0].equalsIgnoreCase("save")) {
|
||||
if(args.length > 2) {
|
||||
return empty;
|
||||
} else {
|
||||
return CommandHelper.getWarNames();
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("save-all")) {
|
||||
return empty;
|
||||
} else if (args[0].equalsIgnoreCase("load")) {
|
||||
if(args.length > 2) {
|
||||
return empty;
|
||||
} else {
|
||||
return CommandHelper.getWarNames();
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("load-all")) {
|
||||
return empty;
|
||||
} else if (args[0].equalsIgnoreCase("create")) {
|
||||
if (args.length > 2) {
|
||||
switch (args[1]) {
|
||||
case "raid" -> {
|
||||
|
||||
Reference in new issue
Block a user