2016-06-26 00:50:27 +00:00
|
|
|
package buttondevteam;
|
|
|
|
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
|
|
|
|
import org.bukkit.plugin.PluginDescriptionFile;
|
|
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
|
|
|
|
|
|
|
import buttondevteam.alisolarflare.aliarrow.AliArrowSubPlugin;
|
2016-07-04 22:20:39 +00:00
|
|
|
import buttondevteam.player.PlayerSubPlugin;
|
2016-06-26 00:50:27 +00:00
|
|
|
|
|
|
|
public class MainPlugin extends JavaPlugin {
|
|
|
|
private PluginDescriptionFile pdfFile;
|
|
|
|
private Logger logger;
|
|
|
|
private AliArrowSubPlugin aliArrowSubPlugin;
|
2016-07-04 22:20:39 +00:00
|
|
|
private PlayerSubPlugin playerSubPlugin;
|
2016-06-26 00:50:27 +00:00
|
|
|
|
|
|
|
public void onEnable(){
|
|
|
|
//Logs "Plugin Enabled", registers commands
|
|
|
|
pdfFile = getDescription();
|
|
|
|
logger = getLogger();
|
|
|
|
logger.info(pdfFile.getName() + " has been started (V." + pdfFile.getVersion()+ ").");
|
|
|
|
|
|
|
|
registerSubPlugins();
|
|
|
|
registerCommands();
|
|
|
|
registerEvents();
|
|
|
|
|
|
|
|
logger.info(pdfFile.getName() + " has been Enabled (V." + pdfFile.getVersion()+ ").");
|
|
|
|
}
|
|
|
|
private void registerSubPlugins() {
|
|
|
|
aliArrowSubPlugin = new AliArrowSubPlugin(this);
|
|
|
|
aliArrowSubPlugin.register();
|
2016-07-04 22:20:39 +00:00
|
|
|
playerSubPlugin = new PlayerSubPlugin(this);
|
|
|
|
playerSubPlugin.register();
|
2016-06-26 00:50:27 +00:00
|
|
|
}
|
|
|
|
private void registerCommands() {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
private void registerEvents() {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|