PlotMe removed from pom/buy only registered if econ enabled

This commit is contained in:
Jesse Boyd 2015-01-13 20:09:13 +11:00
parent c21c100908
commit 315223f779
3 changed files with 2 additions and 8 deletions

View file

@ -1498,6 +1498,7 @@ import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
final RegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
if (economyProvider != null) {
economy = economyProvider.getProvider();
MainCommand.subCommands.add(new Buy());
}
}
useEconomy = (economy != null);