Advertisement
Guest User

SlimeKits.Main

a guest
May 16th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. public class Main extends JavaPlugin implements Listener{
  2.     private static Main instance;
  3.    
  4.     public static Economy econ = null;
  5.     public static final Logger log = Logger.getLogger("Minecraft");
  6.  
  7.     public void onEnable(){
  8.         instance = this;
  9.        
  10.         if (!setupEconomy() ) {
  11.             log.severe(String.format("[%s] - Disabled due to no Vault dependency found!", getDescription().getName()));
  12.             getServer().getPluginManager().disablePlugin(this);
  13.             return;
  14.         }
  15.  
  16.         PluginManager pm = getServer().getPluginManager();
  17.         pm.registerEvents(this, this);
  18.         pm.registerEvents(new MenuListener(this), this);
  19.  
  20.         getConfig().options().copyDefaults(true);
  21.         saveConfig();
  22.        
  23.         Methods.createMenu();
  24.         Methods.createSelectMenu();
  25.     }
  26.    
  27.     public static Main inst(){
  28.         return instance;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement