Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onEnable() {
- File file = new File(getDataFolder(), "config.yml");
- if(!file.exists()) {
- saveDefaultConfig();
- }
- PluginDescriptionFile pdffile = getDescription();
- getServer().getPluginManager().registerEvents(new PlayerExpListener(this), this);
- getCommand("durexp").setExecutor(new DurexpExecutor(this));
- //AutoUpdater
- if (getConfig().getBoolean("AutoUpdate", false)) {
- Updater localUpdater = new Updater(this, bukkitId, getFile(), Updater.UpdateType.DEFAULT, true);
- } else {
- getLogger().info("AutoUpdate is turned off.");
- }
- //Load Vault
- setupPermissions();
- setupEconomy();
- setupChat();
- getLogger().info("Linked to Vault!");
- getLogger().info("by Vidsify");
- getLogger().info("" + pdffile.getVersion() + " has been enabled");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement