quick fix

This commit is contained in:
2025-03-02 21:07:28 +01:00
parent d4caba3538
commit fcabc53b07
4 changed files with 230 additions and 0 deletions

View File

@@ -3,24 +3,37 @@ package hu.jgj52.wolfFFA;
import hu.jgj52.wolfFFA.Commands.EditKitCommand;
import hu.jgj52.wolfFFA.Commands.TpToFfaCommand;
import hu.jgj52.wolfFFA.Listeners.KitListener;
import hu.jgj52.wolfFFA.Utils.MapReset;
import org.bukkit.plugin.java.JavaPlugin;
public final class Main extends JavaPlugin {
private MapReset mapReset;
@Override
public void onEnable() {
// Plugin startup logic
getConfig().options().copyDefaults(true);
saveConfig();
getCommand("tptoffa").setExecutor(new TpToFfaCommand(this));
getCommand("editkit").setExecutor(new EditKitCommand(this));
getServer().getPluginManager().registerEvents(new KitListener(this), this);
this.mapReset = new MapReset(this);
}
@Override
public void onDisable() {
// Plugin shutdown logic
}
public static Main getInstance() {
return getPlugin(Main.class);
}
public MapReset getMapResetManager() {
return this.mapReset;
}
}