Merge branch 'main' into aubri-test-raiding

This commit is contained in:
Isaac authored and GitHub committed 2023-04-11 15:38:36 +01:00
commit 7e13f99bbf
8 files changed
+20 -8

No files matched your search

@@ -19,6 +19,15 @@ import org.bukkit.entity.Player;
import java.util.ArrayList;
public class RaidCommands implements CommandExecutor {
public static ArrayList<Town> towns;
public static ArrayList<Raid> raids;
public static int maxID;
static {
RaidCommands.towns = new ArrayList<Town>();
RaidCommands.raids = new ArrayList<Raid>();
}
public RaidCommands(final Main plugin) {
//plugin.getCommand("raid").setExecutor((CommandExecutor)this);
}
@@ -21,6 +21,7 @@ public class RaidTabCompletion implements TabCompleter {
public List<String> onTabComplete(CommandSender sender, Command cmd, String label, String[] args) {
List<String> completions = new ArrayList<>();
Player p = (Player)sender;
/*
if (args.length == 1) {
if (p.hasPermission("AlathraWar.admin")) {
completions.add("stop");
@@ -100,6 +101,7 @@ public class RaidTabCompletion implements TabCompleter {
}
}
}
*/
return Collections.emptyList();
}
}