Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main extends JavaPlugin implements Listener{
- private static Main instance;
- public static Economy econ = null;
- public static final Logger log = Logger.getLogger("Minecraft");
- public void onEnable(){
- instance = this;
- if (!setupEconomy() ) {
- log.severe(String.format("[%s] - Disabled due to no Vault dependency found!", getDescription().getName()));
- getServer().getPluginManager().disablePlugin(this);
- return;
- }
- PluginManager pm = getServer().getPluginManager();
- pm.registerEvents(this, this);
- pm.registerEvents(new MenuListener(this), this);
- getConfig().options().copyDefaults(true);
- saveConfig();
- Methods.createMenu();
- Methods.createSelectMenu();
- }
- public static Main inst(){
- return instance;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement