mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
Fixups after the reckoning (INCOMPLETE)
This commit is contained in:
1 parent
840ea44ebc
commit
7eb677f8af
6 files changed
+381
-306
No files matched your search
@@ -4,6 +4,8 @@ import com.palmergames.bukkit.towny.TownyAPI;
|
||||
import com.palmergames.bukkit.towny.object.Town;
|
||||
import me.ShermansWorld.AlathraWar.Raid;
|
||||
import me.ShermansWorld.AlathraWar.War;
|
||||
import me.ShermansWorld.AlathraWar.data.RaidData;
|
||||
import me.ShermansWorld.AlathraWar.data.WarData;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.TabCompleter;
|
||||
@@ -32,29 +34,29 @@ public class RaidTabCompletion implements TabCompleter {
|
||||
return completions;
|
||||
} else if (args.length == 2) {
|
||||
if (args[0].equalsIgnoreCase("start")) {
|
||||
if (!WarCommands.wars.isEmpty()) {
|
||||
for (War war : WarCommands.wars) {
|
||||
if (!WarData.getWars().isEmpty()) {
|
||||
for (War war : WarData.getWars()) {
|
||||
completions.add(war.getName());
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("stop") || args[0].equalsIgnoreCase("abandon")) {
|
||||
if (!RaidCommands.raids.isEmpty()) {
|
||||
if (!RaidData.getRaids().isEmpty()) {
|
||||
for (Raid raid : RaidCommands.raids) {
|
||||
completions.add(String.valueOf(raid.getID()));
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("join")) {
|
||||
if (!WarCommands.wars.isEmpty()) {
|
||||
for (War war : WarCommands.wars) {
|
||||
if (!WarData.getWars().isEmpty()) {
|
||||
for (War war : WarData.getWars()) {
|
||||
completions.add(war.getName());
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("leave")) {
|
||||
if (!WarCommands.wars.isEmpty()) {
|
||||
for (War war : WarCommands.wars) {
|
||||
if (!WarData.getWars().isEmpty()) {
|
||||
for (War war : WarData.getWars()) {
|
||||
completions.add(war.getName());
|
||||
}
|
||||
return completions;
|
||||
|
||||
Reference in new issue
Block a user