Cleanup post merge

This commit is contained in:
Aubri Seebauer committed 2023-04-11 10:49:08 -04:00
1 parent 6f171d4410
commit 4f033344a9
4 files changed
+3 -15

No files matched your search

@@ -96,7 +96,7 @@ public class Main extends JavaPlugin {
new RaidCommands(this);
getCommand("war").setTabCompleter(new WarTabCompletion());
getCommand("siege").setTabCompleter(new SiegeTabCompletion());
//getCommand("raid").setTabCompleter(new RaidTabCompletion());
getCommand("raid").setTabCompleter(new RaidTabCompletion());
getServer().getPluginManager().registerEvents((Listener) new KillsListener(), (Plugin) this);
getServer().getPluginManager().registerEvents((Listener) new CommandsListener(), (Plugin) this);
getServer().getPluginManager().registerEvents((Listener) new JoinListener(), (Plugin) this);
@@ -104,6 +104,7 @@ public class Main extends JavaPlugin {
initData();
initAPIs();
setupEconomy();
initLogs();
}
public void onDisable() {
@@ -19,17 +19,9 @@ 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);
plugin.getCommand("raid").setExecutor((CommandExecutor)this);
}
public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
@@ -21,7 +21,6 @@ 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");
@@ -101,7 +100,6 @@ public class RaidTabCompletion implements TabCompleter {
}
}
}
*/
return Collections.emptyList();
}
}
@@ -241,7 +241,4 @@ public class RaidData {
return 1;
}
public static Object getRaidMap(War war) {
return null;
}
}