Files
src
build.gradle
Code
7 501
src/main/java/com/protectionupgrade/Protection5Upgrade.java
package com.protectionupgrade;
import com.protectionupgrade.commands.GiveUpgradeCommand;
import com.protectionupgrade.listeners.UpgradeListener;
import org.bukkit.plugin.java.JavaPlugin;
public class Protection5Upgrade extends JavaPlugin {
private static Protection5Upgrade instance;
@Override
public void onEnable() {
instance = this;
saveDefaultConfig();
getServer().getPluginManager().registerEvents(new UpgradeListener(this), this);
getCommand("giveupgrade").setExecutor(new GiveUpgradeCommand(this));
getLogger().info("Protection Upgrade plugin enabled!");
}
@Override
public void onDisable() {
getLogger().info("Protection Upgrade plugin disabled!");
}
public static Protection5Upgrade getInstance() {
return instance;
}
}