AliPresents/src/alisolarflare/AliPresents.java

45 lines
1.2 KiB
Java
Raw Normal View History

2016-08-21 17:23:59 +00:00
package alisolarflare;
import java.util.logging.Logger;
import org.bukkit.plugin.PluginDescriptionFile;
import alisolarflare.flairdoors.PortalListener;
import alisolarflare.flairdoors.SetFlairDoorColour;
2016-09-03 00:22:34 +00:00
import alisolarflare.links.AliLinkSubPlug;
//import alisolarflare.links.AliLinkSubPlug;
2016-08-21 17:23:59 +00:00
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.shulker.AliShulker;
public class AliPresents extends JavaPlugin{
public void onEnable(){
PluginDescriptionFile pdfFile = getDescription();
Logger logger = getLogger();
logger.info(pdfFile.getName() + " has been started (V." + pdfFile.getVersion()+ ").");
2016-09-03 00:22:34 +00:00
registerSubPlugins();
2016-08-21 17:23:59 +00:00
registerCommands();
registerEvents();
2016-08-21 17:23:59 +00:00
logger.info(pdfFile.getName() + " has fully registered (V." + pdfFile.getVersion()+ ").");
}
private void registerEvents() {
getServer().getPluginManager().registerEvents(new PortalListener(this), this);
2016-08-21 17:23:59 +00:00
}
public void registerSubPlugins(){
2016-09-03 00:22:34 +00:00
AliLinkSubPlug alilinksubplugin = new AliLinkSubPlug(this);
alilinksubplugin.register();
2016-08-21 17:23:59 +00:00
}
public void registerCommands(){
getCommand("alishulker").setExecutor(new AliShulker());
getCommand("SetFlairDoorColour").setExecutor(new SetFlairDoorColour());
2016-08-21 17:23:59 +00:00
}
}