Files
src
build.gradle
settings.gradle
Code
8 372
src/main/java/com/kodari/impended/ImpendedPlugin.java
package com.kodari.impended;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
public final class ImpendedPlugin extends JavaPlugin {
private ImpendedItem itemFactory;
private ImpendedAbility ability;
@Override
public void onEnable() {
itemFactory = new ImpendedItem(this);
ability = new ImpendedAbility(this);
getServer().getPluginManager().registerEvents(new ImpendedListener(ability, itemFactory), this);
PluginCommand command = getCommand("impended");
if (command != null) {
command.setExecutor(new ImpendedCommand(itemFactory));
}
}
public ImpendedItem getItemFactory() {
return itemFactory;
}
public ImpendedAbility getAbility() {
return ability;
}
}