Minor messaround with land claiming.
This commit is contained in:
@ -6,6 +6,7 @@ import com.massivecraft.factions.Perm;
|
||||
import com.massivecraft.factions.cmd.arg.ARFaction;
|
||||
import com.massivecraft.mcore.cmd.req.ReqHasPerm;
|
||||
import com.massivecraft.mcore.cmd.req.ReqIsPlayer;
|
||||
import com.massivecraft.mcore.ps.PS;
|
||||
|
||||
public class CmdFactionsAutoClaim extends FCommand
|
||||
{
|
||||
@ -35,7 +36,7 @@ public class CmdFactionsAutoClaim extends FCommand
|
||||
fme.setAutoClaimFor(forFaction);
|
||||
|
||||
msg("<i>Now auto-claiming land for <h>%s<i>.", forFaction.describeTo(fme));
|
||||
fme.attemptClaim(forFaction, me.getLocation(), true);
|
||||
fme.attemptClaim(forFaction, PS.valueOf(me), true);
|
||||
}
|
||||
|
||||
}
|
@ -44,7 +44,7 @@ public class CmdFactionsClaim extends FCommand
|
||||
if (radius < 2)
|
||||
{
|
||||
// single chunk
|
||||
fme.attemptClaim(forFaction, me.getLocation(), true);
|
||||
fme.attemptClaim(forFaction, PS.valueOf(me), true);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ public class CmdFactionsClaim extends FCommand
|
||||
@Override
|
||||
public boolean work()
|
||||
{
|
||||
boolean success = fme.attemptClaim(forFaction, this.currentLocation(), true);
|
||||
boolean success = fme.attemptClaim(forFaction, PS.valueOf(this.currentLocation()), true);
|
||||
if (success)
|
||||
failCount = 0;
|
||||
else if ( ! success && failCount++ >= limit)
|
||||
|
Reference in New Issue
Block a user