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