Some bugfixes

This commit is contained in:
Olof Larsson
2013-04-26 08:02:32 +02:00
parent 684974b336
commit f6d601446e
5 changed files with 14 additions and 14 deletions

View File

@@ -76,7 +76,8 @@ public class CmdFactionsShow extends FCommand
for (FactionsEventChunkChangeType type : FactionsEventChunkChangeType.values())
{
Double money = uconf.econChunkCost.get(type);
if (money == null) money = 0D;
if (money == null) continue;
if (money == 0D) continue;
money *= landCount;
String word = null;

View File

@@ -31,11 +31,12 @@ public class ReqBankCommandsEnabled extends ReqAbstract
@Override
public String createErrorMessage(CommandSender sender, MCommand command)
{
if (!UConf.get(sender).bankEnabled)
UConf uconf = UConf.get(sender);
if (!uconf.bankEnabled)
{
return Txt.parse("<b>The Factions bank system is disabled on this server.");
return Txt.parse("<b>Faction banks are disabled in the <h>%s <b>universe.", uconf.getUniverse());
}
return Txt.parse("<b>The Factions economy features are disabled on this server.");
return Txt.parse("<b>Faction economy features are disabled in the <h>%s <b>universe.", uconf.getUniverse());
}
}