Fix NPE in econ if no econ plugin but usecon.

This commit is contained in:
drtshock
2013-03-19 21:49:39 -05:00
parent 760a7ee5ad
commit 5fe91c5abf
2 changed files with 5 additions and 3 deletions
@@ -28,6 +28,7 @@ public class Main extends JavaPlugin {
public static Economy econ = null;
public static boolean dropOnDeath = false;
public static int inventoriesToDrop = 0;
public static boolean useVault = false;
@Override
public void onEnable() {
@@ -96,6 +97,7 @@ public class Main extends JavaPlugin {
return false;
}
econ = rsp.getProvider();
useVault = true;
return econ != null;
}