refactor: prepare for raids

- Recode most classes
- Add phases to battles
- Pull updates from gradle-template-plugin
This commit is contained in:
darksaid98 committed 2024-09-21 10:37:15 +02:00
1 parent a4440c9283
commit b1a95ed011
105 files changed
+6941 -3296

No files matched your search

@@ -0,0 +1,35 @@
package com.github.alathra.alathranwars.commands;
import com.github.alathra.alathranwars.AlathranWars;
import dev.jorel.commandapi.CommandAPI;
import dev.jorel.commandapi.CommandAPIBukkitConfig;
public class CommandHandler {
private final AlathranWars plugin;
/**
* Instantiates the Command handler.
*
* @param plugin the plugin
*/
public CommandHandler(AlathranWars plugin) {
this.plugin = plugin;
}
public void onLoad() {
CommandAPI.onLoad(new CommandAPIBukkitConfig(plugin).shouldHookPaperReload(true).silentLogs(true));
}
public void onEnable() {
CommandAPI.onEnable();
// Register commands
new WarCommands();
new SiegeCommands();
new AdminCommands();
}
public void onDisable() {
CommandAPI.onDisable();
}
}