Files
blockbench
src
build.gradle
settings.gradle
Code
11 810
src/main/java/com/kodari/bluedeathknight/BlueDeathKnightPlugin.java
package com.kodari.bluedeathknight;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
public final class BlueDeathKnightPlugin extends JavaPlugin {
private DeathKnightManager deathKnightManager;
@Override
public void onEnable() {
saveDefaultConfig();
deathKnightManager = new DeathKnightManager(this);
PluginCommand command = getCommand("deathknight");
if (command != null) {
DeathKnightCommand deathKnightCommand = new DeathKnightCommand(deathKnightManager);
command.setExecutor(deathKnightCommand);
command.setTabCompleter(deathKnightCommand);
}
getServer().getPluginManager().registerEvents(new DeathKnightListener(deathKnightManager), this);
getLogger().info("BlueDeathKnight est actif.");
}
@Override
public void onDisable() {
if (deathKnightManager != null) {
deathKnightManager.stopAll();
}
}
}