Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onEnable(){
- commands = new Commands();
- plugin = this;
- log = plugin.getLogger();
- cfgFile = new File(getDataFolder(), "Config.yml");
- try {
- firstRun();
- } catch (Exception e) {
- e.printStackTrace();
- }
- config = new YamlConfiguration();
- reloadYAMLs();
- getCommand("rank").setExecutor(commands);
- mysqlManager = new MysqlManager(this);
- try {
- mysqlManager.setupDB();
- } catch (ClassNotFoundException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(),
- this);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement