Files
src
Grimoires
Code
6 351
src/main/java/com/kodari/grimoires/GrimoiresPlugin.java
package com.kodari.grimoires;
import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
public class GrimoiresPlugin extends JavaPlugin {
private NamespacedKey grimoireKey;
@Override
public void onEnable() {
grimoireKey = new NamespacedKey(this, "grimoire");
Bukkit.getPluginManager().registerEvents(new GrimoireListener(this), this);
PluginCommand command = getCommand("grimoire");
if (command != null) {
GrimoireCommand grimoireCommand = new GrimoireCommand(this);
command.setExecutor(grimoireCommand);
command.setTabCompleter(grimoireCommand);
}
}
public NamespacedKey getGrimoireKey() {
return grimoireKey;
}
}