Files
src
pom.xml
Code
5 236
src/main/java/com/kodari/blueskull/BlueSkullPlugin.java
package com.kodari.blueskull;
import com.kodari.blueskull.commands.BlueSkullCommand;
import com.kodari.blueskull.listeners.GoatHornListener;
import lombok.Getter;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;
public class BlueSkullPlugin extends JavaPlugin {
@Getter
private NamespacedKey hornKey;
@Override
public void onEnable() {
hornKey = new NamespacedKey(this, "skull_horn");
getCommand("blueskull").setExecutor(new BlueSkullCommand(this));
getServer().getPluginManager().registerEvents(new GoatHornListener(this), this);
}
}