2016-08-21 17:23:59 +00:00
|
|
|
package alisolarflare;
|
|
|
|
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
|
|
|
|
import org.bukkit.plugin.PluginDescriptionFile;
|
2016-08-25 07:47:18 +00:00
|
|
|
|
2016-10-17 17:25:37 +00:00
|
|
|
import alisolarflare.flairdoors.FlairMe;
|
2016-08-25 07:47:18 +00:00
|
|
|
import alisolarflare.flairdoors.PortalListener;
|
|
|
|
import alisolarflare.flairdoors.SetFlairDoorColour;
|
2016-10-22 01:50:31 +00:00
|
|
|
import alisolarflare.gpowers.gPowerCommand;
|
2016-10-22 19:25:37 +00:00
|
|
|
import alisolarflare.gpowers.commands.PowerDown;
|
|
|
|
import alisolarflare.gpowers.commands.PowerUp;
|
2016-10-22 01:50:31 +00:00
|
|
|
import alisolarflare.gpowers.listeners.gPowerListener;
|
2016-09-03 00:22:34 +00:00
|
|
|
|
2016-08-25 07:47:18 +00:00
|
|
|
//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();
|
2016-08-25 07:47:18 +00:00
|
|
|
registerEvents();
|
2016-08-21 17:23:59 +00:00
|
|
|
|
|
|
|
logger.info(pdfFile.getName() + " has fully registered (V." + pdfFile.getVersion()+ ").");
|
|
|
|
|
|
|
|
|
2016-08-25 07:47:18 +00:00
|
|
|
}
|
|
|
|
private void registerEvents() {
|
|
|
|
getServer().getPluginManager().registerEvents(new PortalListener(this), this);
|
2016-10-22 01:50:31 +00:00
|
|
|
getServer().getPluginManager().registerEvents(new gPowerListener(this), this);
|
2016-08-21 17:23:59 +00:00
|
|
|
}
|
|
|
|
public void registerSubPlugins(){
|
2016-10-17 19:08:53 +00:00
|
|
|
//AliLinkSubPlug alilinksubplugin = new AliLinkSubPlug(this);
|
|
|
|
//alilinksubplugin.register();
|
2016-08-21 17:23:59 +00:00
|
|
|
}
|
|
|
|
public void registerCommands(){
|
2016-10-22 19:25:37 +00:00
|
|
|
getCommand("powerup").setExecutor(new PowerUp());
|
|
|
|
getCommand("powerdown").setExecutor(new PowerDown());
|
2016-10-22 02:26:57 +00:00
|
|
|
getCommand("gpowercommand").setExecutor(new gPowerCommand());
|
2016-10-17 19:08:53 +00:00
|
|
|
getCommand("flairme").setExecutor(new FlairMe());
|
2016-08-21 17:23:59 +00:00
|
|
|
getCommand("alishulker").setExecutor(new AliShulker());
|
2016-10-17 19:08:53 +00:00
|
|
|
getCommand("setflairdoorcolour").setExecutor(new SetFlairDoorColour());
|
2016-08-25 07:47:18 +00:00
|
|
|
|
2016-08-21 17:23:59 +00:00
|
|
|
}
|
|
|
|
}
|