package net.ghostrealms;

import org.bukkit.plugin.java.JavaPlugin;

/**
 * Created by River on 1/11/2015.
 */
public class Metro extends JavaPlugin {

    @Override
    public void onEnable() {

    }

    @Override
    public void onDisable() {

    }
}

@@ -19,16 +19,111 @@
 ealms;%0A%0A
+import net.milkbowl.vault.economy.Economy;%0Aimport org.bukkit.plugin.RegisteredServiceProvider;%0A
 import o
@@ -195,16 +195,42 @@
 1/2015.%0A
+ * Metropolis Plugin Main%0A
  */%0Apubl
@@ -262,24 +262,58 @@
 vaPlugin %7B%0A%0A
+    private Economy econ = null;%0A%0A
     @Overrid
@@ -347,60 +347,569 @@
 ) %7B%0A
-%0A    %7D%0A%0A    @Override%0A    public void onDisable() %7B%0A
+        if(!setupVault() %7C%7C getServer().getPluginManager().getPlugin(%22Vault%22) == null) %7B%0A            getLogger().severe(%22Could not instance vault%22);%0A            this.getServer().getPluginManager().disablePlugin(this);%0A        %7D%0A%0A    %7D%0A%0A    @Override%0A    public void onDisable() %7B%0A%0A    %7D%0A%0A    public boolean setupVault() %7B%0A        RegisteredServiceProvider%3CEconomy%3E rsp = getServer().getServicesManager().getRegistration(Economy.class);%0A        if (rsp == null) %7B%0A            return false;%0A        %7D%0A        econ = rsp.getProvider();%0A        return econ != null;
 %0A   

update main