Files
src
Code
5 259
src/main/java/com/teleportwand/TeleportWand.java
package com.teleportwand;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;
public class TeleportWand extends JavaPlugin {
private static TeleportWand instance;
private NamespacedKey targetKey;
@Override
public void onEnable() {
instance = this;
targetKey = new NamespacedKey(this, "target_uuid");
saveDefaultConfig();
reloadConfig();
getCommand("wand").setExecutor(new WandCommand());
getServer().getPluginManager().registerEvents(new WandListener(), this);
getLogger().info("TeleportWand enabled.");
}
@Override
public void onDisable() {
getLogger().info("TeleportWand disabled.");
}
public static TeleportWand getInstance() {
return instance;
}
public NamespacedKey getTargetKey() {
return targetKey;
}
}