Files
src
build.gradle
settings.gradle
Code
8 296
src/main/java/com/kodari/sculkcrossbow/SculkCrossbowPlugin.java
package com.kodari.sculkcrossbow;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;
public final class SculkCrossbowPlugin extends JavaPlugin {
private NamespacedKey crossbowKey;
private NamespacedKey projectileKey;
@Override
public void onEnable() {
saveDefaultConfig();
crossbowKey = new NamespacedKey(this, "sculk_crossbow");
projectileKey = new NamespacedKey(this, "sculk_projectile");
getServer().getPluginManager().registerEvents(new SculkProjectileListener(this), this);
getCommand("sculkcrossbow").setExecutor(new SculkCrossbowCommand(this));
}
public NamespacedKey getCrossbowKey() {
return crossbowKey;
}
public NamespacedKey getProjectileKey() {
return projectileKey;
}
}