Saber-Factions/src/main/java/com/massivecraft/factions/event/LandUnclaimEvent.java

51 lines
1.1 KiB
Java
Raw Normal View History

package com.massivecraft.factions.event;
import com.massivecraft.factions.FLocation;
import com.massivecraft.factions.FPlayer;
2014-04-04 20:55:21 +02:00
import com.massivecraft.factions.Faction;
import org.bukkit.entity.Player;
2014-04-04 20:55:21 +02:00
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class LandUnclaimEvent extends FactionPlayerEvent implements Cancellable {
2014-04-04 20:55:21 +02:00
private boolean cancelled;
private FLocation location;
2014-04-04 20:55:21 +02:00
public LandUnclaimEvent(FLocation loc, Faction f, FPlayer p) {
super(f, p);
2014-07-01 22:10:18 +02:00
cancelled = false;
location = loc;
2014-04-04 20:55:21 +02:00
}
2014-04-04 20:55:21 +02:00
public FLocation getLocation() {
return this.location;
}
@Deprecated
2014-04-04 20:55:21 +02:00
public String getFactionId() {
return getFaction().getId();
2014-04-04 20:55:21 +02:00
}
@Deprecated
2014-04-04 20:55:21 +02:00
public String getFactionTag() {
return getFaction().getTag();
2014-04-04 20:55:21 +02:00
}
@Deprecated
2014-04-04 20:55:21 +02:00
public Player getPlayer() {
return getfPlayer().getPlayer();
2014-04-04 20:55:21 +02:00
}
2014-04-04 20:55:21 +02:00
@Override
public boolean isCancelled() {
return cancelled;
}
2014-04-04 20:55:21 +02:00
@Override
public void setCancelled(boolean c) {
cancelled = c;
}
}