Files
src
build.gradle
manifest.kod
settings.gradle
Code
8 426
src/main/java/com/saynex/totem/SaynexTotemPlugin.java
package com.saynex.totem;
import org.bukkit.NamespacedKey;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.Objects;
public final class SaynexTotemPlugin extends JavaPlugin {
private NamespacedKey soulTotemKey;
@Override
public void onEnable() {
soulTotemKey = new NamespacedKey(this, "soul_totem");
SoulTotemCommand command = new SoulTotemCommand(this);
PluginCommand pluginCommand = Objects.requireNonNull(getCommand("saynexTotem"));
pluginCommand.setExecutor(command);
pluginCommand.setTabCompleter(command);
getServer().getPluginManager().registerEvents(new SoulTotemListener(this), this);
}
public NamespacedKey getSoulTotemKey() {
return soulTotemKey;
}
}