Better defaults

This commit is contained in:
Olof Larsson
2014-11-17 11:14:09 +01:00
parent 19ce054de2
commit 3cb44eef0c
2 changed files with 39 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ package com.massivecraft.factions.cmd.req;
import org.bukkit.command.CommandSender;
import com.massivecraft.factions.entity.MConf;
import com.massivecraft.factions.integration.Econ;
import com.massivecraft.massivecore.cmd.MassiveCommand;
import com.massivecraft.massivecore.cmd.req.ReqAbstract;
import com.massivecraft.massivecore.util.Txt;
@@ -25,13 +26,13 @@ public class ReqBankCommandsEnabled extends ReqAbstract
@Override
public boolean apply(CommandSender sender, MassiveCommand command)
{
return MConf.get().econEnabled && MConf.get().bankEnabled;
return MConf.get().bankEnabled && Econ.isEnabled();
}
@Override
public String createErrorMessage(CommandSender sender, MassiveCommand command)
{
if (!MConf.get().bankEnabled)
if ( ! MConf.get().bankEnabled)
{
return Txt.parse("<b>Faction banks are disabled.");
}