No chat to show

This project's files are all here to explore.

Files
src
pom.xml
Code
7 289
src/main/java/com/example/maceability/MaceAbilityPlugin.java
package com.example.maceability;

import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class MaceAbilityPlugin extends JavaPlugin {

    private NamespacedKey abilityKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        abilityKey = new NamespacedKey(this, "mace_ability");

        getServer().getPluginManager().registerEvents(new MaceListener(this), this);
        MaceCommand command = new MaceCommand(this);
        getCommand("macetool").setExecutor(command);
        getCommand("macetool").setTabCompleter(command);

        getLogger().info("MaceAbility enabled.");
    }

    public NamespacedKey getAbilityKey() {
        return abilityKey;
    }
}