A few minor bugfixes and tweaks.
This commit is contained in:
@@ -31,6 +31,7 @@ public class CmdFactionsAutoClaim extends FCommand
|
||||
return;
|
||||
}
|
||||
|
||||
// FPerm
|
||||
if (forFaction.isNormal() && !FPerm.TERRITORY.has(usender, forFaction, true)) return;
|
||||
|
||||
usender.setAutoClaimFaction(forFaction);
|
||||
|
@@ -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)
|
||||
|
@@ -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());
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user