2011-04-08 15:51:07 +02:00
|
|
|
package org.mcteam.factions.commands;
|
2011-03-23 17:39:56 +01:00
|
|
|
|
|
|
|
import org.bukkit.command.CommandSender;
|
2011-04-08 15:51:07 +02:00
|
|
|
import org.mcteam.factions.Board;
|
|
|
|
import org.mcteam.factions.FLocation;
|
|
|
|
import org.mcteam.factions.Faction;
|
|
|
|
import org.mcteam.factions.Factions;
|
2011-03-23 17:39:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
public class FCommandSafeclaim extends FBaseCommand {
|
|
|
|
|
|
|
|
public FCommandSafeclaim() {
|
|
|
|
aliases.add("safeclaim");
|
|
|
|
aliases.add("safe");
|
|
|
|
|
|
|
|
helpDescription = "Claim land for the safezone";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean hasPermission(CommandSender sender) {
|
|
|
|
return Factions.hasPermManageSafeZone(sender);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void perform() {
|
|
|
|
FLocation flocation = new FLocation(me);
|
|
|
|
Board.setFactionAt(Faction.getSafeZone(), flocation);
|
|
|
|
sendMessage("This land is now a safe zone");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|