A few minor bugfixes and tweaks.

This commit is contained in:
Olof Larsson
2013-04-25 12:04:01 +02:00
parent 18e6c778b9
commit 8fd088e291
7 changed files with 60 additions and 52 deletions

View File

@@ -31,6 +31,7 @@ public class CmdFactionsAutoClaim extends FCommand
return;
}
// FPerm
if (forFaction.isNormal() && !FPerm.TERRITORY.has(usender, forFaction, true)) return;
usender.setAutoClaimFaction(forFaction);

View File

@@ -37,7 +37,7 @@ public class CmdFactionsClaim extends FCommand
if (forFaction == null) return;
// FPerm
if (!FPerm.TERRITORY.has(sender, forFaction, true)) return;
if (forFaction.isNormal() && !FPerm.TERRITORY.has(sender, forFaction, true)) return;
// Validate
if (radius < 1)

View File

@@ -24,7 +24,7 @@ public class CmdFactionsDescription extends FCommand
public void perform()
{
// Args
String newDescription = this.argConcatFrom(1);
String newDescription = this.argConcatFrom(0);
// Event
FactionsEventDescriptionChange event = new FactionsEventDescriptionChange(sender, usenderFaction, newDescription);
@@ -33,7 +33,7 @@ public class CmdFactionsDescription extends FCommand
newDescription = event.getNewDescription();
// Apply
usenderFaction.setDescription(this.argConcatFrom(1));
usenderFaction.setDescription(newDescription);
// Inform
usenderFaction.msg("<i>%s <i>set your faction description to:\n%s", Mixin.getDisplayName(sender), usenderFaction.getDescription());

View File

@@ -30,13 +30,12 @@ public class CmdFactionsMap extends FCommand
if (this.arg(0, ARBoolean.get(), !msender.isMapAutoUpdating()))
{
// Turn on
msender.setMapAutoUpdating(true);
msg("<i>Map auto update <green>ENABLED.");
// And show the map once
showMap();
// Turn on
msender.setMapAutoUpdating(true);
msg("<i>Map auto update <green>ENABLED.");
}
else
{

View File

@@ -58,7 +58,7 @@ public class CmdFactionsUnclaimall extends FCommand
}
// Inform
usenderFaction.msg("%s<i> unclaimed <h>5 <i> of your <h>200 <i>faction land. You now have <h>23 <i>land left.", usender.describeTo(usenderFaction, true), countSuccess, countTotal, countFail);
usenderFaction.msg("%s<i> unclaimed <h>%d <i>of your <h>%d <i>faction land. You now have <h>%d <i>land claimed.", usender.describeTo(usenderFaction, true), countSuccess, countTotal, countFail);
// Log
if (MConf.get().logLandUnclaims)