Make LandUnclaimAllEvent Cancellable
This commit is contained in:
@@ -3,8 +3,10 @@ package com.massivecraft.factions.event;
|
||||
import com.massivecraft.factions.FPlayer;
|
||||
import com.massivecraft.factions.Faction;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
|
||||
public class LandUnclaimAllEvent extends FactionPlayerEvent {
|
||||
public class LandUnclaimAllEvent extends FactionPlayerEvent implements Cancellable {
|
||||
private boolean cancelled;
|
||||
|
||||
public LandUnclaimAllEvent(Faction f, FPlayer p) {
|
||||
super(f, p);
|
||||
@@ -45,4 +47,14 @@ public class LandUnclaimAllEvent extends FactionPlayerEvent {
|
||||
public Player getPlayer() {
|
||||
return getfPlayer().getPlayer();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCancelled(boolean cancelled) {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user