Some bugfixes
This commit is contained in:
@@ -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;
|
||||
|
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user