Showing Dropping Anvil Something (Ignore)

This commit is contained in:
Driftay
2019-09-15 05:14:14 -04:00
parent 2a1a8db554
commit e7db7170d1
285 changed files with 28757 additions and 28757 deletions

View File

@@ -6,37 +6,37 @@ import org.bukkit.event.HandlerList;
public class FPlayerEnteredFactionEvent extends FactionPlayerEvent {
private static final HandlerList handlers = new HandlerList();
private FPlayer fPlayer;
private Faction factionTo;
private Faction factionFrom;
private static final HandlerList handlers = new HandlerList();
private FPlayer fPlayer;
private Faction factionTo;
private Faction factionFrom;
public FPlayerEnteredFactionEvent(Faction factionTo, Faction factionFrom, FPlayer fPlayer) {
super(fPlayer.getFaction(), fPlayer);
this.factionFrom = factionFrom;
this.factionTo = factionTo;
this.fPlayer = fPlayer;
}
public FPlayerEnteredFactionEvent(Faction factionTo, Faction factionFrom, FPlayer fPlayer) {
super(fPlayer.getFaction(), fPlayer);
this.factionFrom = factionFrom;
this.factionTo = factionTo;
this.fPlayer = fPlayer;
}
public static HandlerList getHandlerList() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
public HandlerList getHandlers() {
return handlers;
}
public HandlerList getHandlers() {
return handlers;
}
@Override
public FPlayer getfPlayer() {
return fPlayer;
}
@Override
public FPlayer getfPlayer() {
return fPlayer;
}
public Faction getFactionTo() {
return factionTo;
}
public Faction getFactionTo() {
return factionTo;
}
public Faction getFactionFrom() {
return factionFrom;
}
public Faction getFactionFrom() {
return factionFrom;
}
}

View File

@@ -9,34 +9,34 @@ import org.bukkit.event.Cancellable;
*/
public class FPlayerJoinEvent extends FactionPlayerEvent implements Cancellable {
PlayerJoinReason reason;
boolean cancelled = false;
PlayerJoinReason reason;
boolean cancelled = false;
public FPlayerJoinEvent(FPlayer fp, Faction f, PlayerJoinReason r) {
super(f, fp);
reason = r;
}
public FPlayerJoinEvent(FPlayer fp, Faction f, PlayerJoinReason r) {
super(f, fp);
reason = r;
}
/**
* Get the reason the player joined the faction.
*
* @return reason player joined the faction.
*/
public PlayerJoinReason getReason() {
return reason;
}
/**
* Get the reason the player joined the faction.
*
* @return reason player joined the faction.
*/
public PlayerJoinReason getReason() {
return reason;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
cancelled = c;
}
@Override
public void setCancelled(boolean c) {
cancelled = c;
}
public enum PlayerJoinReason {
CREATE, LEADER, COMMAND
}
public enum PlayerJoinReason {
CREATE, LEADER, COMMAND
}
}

View File

@@ -6,35 +6,35 @@ import org.bukkit.event.Cancellable;
public class FPlayerLeaveEvent extends FactionPlayerEvent implements Cancellable {
boolean cancelled = false;
private PlayerLeaveReason reason;
boolean cancelled = false;
private PlayerLeaveReason reason;
public FPlayerLeaveEvent(FPlayer p, Faction f, PlayerLeaveReason r) {
super(f, p);
reason = r;
}
public FPlayerLeaveEvent(FPlayer p, Faction f, PlayerLeaveReason r) {
super(f, p);
reason = r;
}
/**
* Get the reason the player left the faction.
*
* @return reason player left the faction.
*/
public PlayerLeaveReason getReason() {
return reason;
}
/**
* Get the reason the player left the faction.
*
* @return reason player left the faction.
*/
public PlayerLeaveReason getReason() {
return reason;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
// Don't let them cancel factions disbanding.
cancelled = reason != PlayerLeaveReason.DISBAND && reason != PlayerLeaveReason.RESET && c;
}
@Override
public void setCancelled(boolean c) {
// Don't let them cancel factions disbanding.
cancelled = reason != PlayerLeaveReason.DISBAND && reason != PlayerLeaveReason.RESET && c;
}
public enum PlayerLeaveReason {
KICKED, DISBAND, RESET, JOINOTHER, LEAVE, BANNED
}
public enum PlayerLeaveReason {
KICKED, DISBAND, RESET, JOINOTHER, LEAVE, BANNED
}
}

View File

@@ -12,40 +12,40 @@ import org.bukkit.event.Cancellable;
*/
public class FPlayerRoleChangeEvent extends FactionPlayerEvent implements Cancellable {
private final Role from;
private boolean cancelled;
private Role to;
private final Role from;
private boolean cancelled;
private Role to;
public FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role from, Role to) {
super(faction, fPlayer);
this.from = from;
this.to = to;
}
public FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role from, Role to) {
super(faction, fPlayer);
this.from = from;
this.to = to;
}
public FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role to) {
this(faction, fPlayer, fPlayer.getRole(), to);
}
public FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role to) {
this(faction, fPlayer, fPlayer.getRole(), to);
}
@Override
public boolean isCancelled() {
return false;
}
@Override
public boolean isCancelled() {
return false;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
public Role getFrom() {
return from;
}
public Role getFrom() {
return from;
}
public Role getTo() {
return to;
}
public Role getTo() {
return to;
}
public void setTo(Role to) {
this.to = to;
}
public void setTo(Role to) {
this.to = to;
}
}

View File

@@ -4,25 +4,25 @@ import com.massivecraft.factions.FPlayer;
import org.bukkit.event.HandlerList;
public class FPlayerStoppedFlying extends FactionPlayerEvent {
private static final HandlerList handlers = new HandlerList();
private FPlayer fPlayer;
private static final HandlerList handlers = new HandlerList();
private FPlayer fPlayer;
public FPlayerStoppedFlying(FPlayer fPlayer) {
super(fPlayer.getFaction(), fPlayer);
this.fPlayer = fPlayer;
}
public FPlayerStoppedFlying(FPlayer fPlayer) {
super(fPlayer.getFaction(), fPlayer);
this.fPlayer = fPlayer;
}
public static HandlerList getHandlerList() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public FPlayer getfPlayer() {
return fPlayer;
}
@Override
public FPlayer getfPlayer() {
return fPlayer;
}
public HandlerList getHandlers() {
return handlers;
}
public HandlerList getHandlers() {
return handlers;
}
}

View File

@@ -12,41 +12,41 @@ import org.bukkit.event.HandlerList;
*/
public class FactionCreateEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private static final HandlerList handlers = new HandlerList();
private String factionTag;
private Player sender;
private boolean cancelled;
private String factionTag;
private Player sender;
private boolean cancelled;
public FactionCreateEvent(Player sender, String tag) {
this.factionTag = tag;
this.sender = sender;
this.cancelled = false;
}
public FactionCreateEvent(Player sender, String tag) {
this.factionTag = tag;
this.sender = sender;
this.cancelled = false;
}
public static HandlerList getHandlerList() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
public FPlayer getFPlayer() {
return FPlayers.getInstance().getByPlayer(sender);
}
public FPlayer getFPlayer() {
return FPlayers.getInstance().getByPlayer(sender);
}
public String getFactionTag() {
return factionTag;
}
public String getFactionTag() {
return factionTag;
}
public HandlerList getHandlers() {
return handlers;
}
public HandlerList getHandlers() {
return handlers;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
}

View File

@@ -11,42 +11,42 @@ import org.bukkit.event.Cancellable;
*/
public class FactionDisbandEvent extends FactionEvent implements Cancellable {
private final Player sender;
private final PlayerDisbandReason reason;
private boolean cancelled = false;
private final Player sender;
private final PlayerDisbandReason reason;
private boolean cancelled = false;
public FactionDisbandEvent(Player sender, String factionId, PlayerDisbandReason reason) {
super(Factions.getInstance().getFactionById(factionId));
this.sender = sender;
this.reason = reason;
}
public FactionDisbandEvent(Player sender, String factionId, PlayerDisbandReason reason) {
super(Factions.getInstance().getFactionById(factionId));
this.sender = sender;
this.reason = reason;
}
public FPlayer getFPlayer() {
return FPlayers.getInstance().getByPlayer(sender);
}
public FPlayer getFPlayer() {
return FPlayers.getInstance().getByPlayer(sender);
}
public Player getPlayer() {
return sender;
}
public Player getPlayer() {
return sender;
}
public PlayerDisbandReason getReason() {
return reason;
}
public PlayerDisbandReason getReason() {
return reason;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
cancelled = c;
}
@Override
public void setCancelled(boolean c) {
cancelled = c;
}
public enum PlayerDisbandReason {
COMMAND,
PLUGIN,
INACTIVITY,
LEAVE,
}
public enum PlayerDisbandReason {
COMMAND,
PLUGIN,
INACTIVITY,
LEAVE,
}
}

View File

@@ -9,29 +9,29 @@ import org.bukkit.event.HandlerList;
*/
public class FactionEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private final Faction faction;
private static final HandlerList handlers = new HandlerList();
private final Faction faction;
public FactionEvent(Faction faction) {
this.faction = faction;
}
public FactionEvent(Faction faction) {
this.faction = faction;
}
public static HandlerList getHandlerList() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
/**
* Get the Faction involved in the event.
*
* @return faction involved in the event.
*/
public Faction getFaction() {
return this.faction;
}
/**
* Get the Faction involved in the event.
*
* @return faction involved in the event.
*/
public Faction getFaction() {
return this.faction;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
}

View File

@@ -8,14 +8,14 @@ import com.massivecraft.factions.Faction;
*/
public class FactionPlayerEvent extends FactionEvent {
protected final FPlayer fPlayer;
protected final FPlayer fPlayer;
public FactionPlayerEvent(Faction faction, FPlayer fPlayer) {
super(faction);
this.fPlayer = fPlayer;
}
public FactionPlayerEvent(Faction faction, FPlayer fPlayer) {
super(faction);
this.fPlayer = fPlayer;
}
public FPlayer getfPlayer() {
return this.fPlayer;
}
public FPlayer getfPlayer() {
return this.fPlayer;
}
}

View File

@@ -10,41 +10,41 @@ import org.bukkit.event.HandlerList;
*/
public class FactionRelationEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private static final HandlerList handlers = new HandlerList();
private Faction fsender;
private Faction ftarget;
private Relation foldrel;
private Relation frel;
private Faction fsender;
private Faction ftarget;
private Relation foldrel;
private Relation frel;
public FactionRelationEvent(Faction sender, Faction target, Relation oldrel, Relation rel) {
fsender = sender;
ftarget = target;
foldrel = oldrel;
frel = rel;
}
public FactionRelationEvent(Faction sender, Faction target, Relation oldrel, Relation rel) {
fsender = sender;
ftarget = target;
foldrel = oldrel;
frel = rel;
}
public static HandlerList getHandlerList() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
public HandlerList getHandlers() {
return handlers;
}
public HandlerList getHandlers() {
return handlers;
}
public Relation getOldRelation() {
return foldrel;
}
public Relation getOldRelation() {
return foldrel;
}
public Relation getRelation() {
return frel;
}
public Relation getRelation() {
return frel;
}
public Faction getFaction() {
return fsender;
}
public Faction getFaction() {
return fsender;
}
public Faction getTargetFaction() {
return ftarget;
}
public Faction getTargetFaction() {
return ftarget;
}
}

View File

@@ -6,39 +6,39 @@ import com.massivecraft.factions.struct.Relation;
import org.bukkit.event.Cancellable;
public class FactionRelationWishEvent extends FactionPlayerEvent implements Cancellable {
private final Faction targetFaction;
private final Relation currentRelation;
private final Relation targetRelation;
private final Faction targetFaction;
private final Relation currentRelation;
private final Relation targetRelation;
private boolean cancelled;
private boolean cancelled;
public FactionRelationWishEvent(FPlayer caller, Faction sender, Faction targetFaction, Relation currentRelation, Relation targetRelation) {
super(sender, caller);
public FactionRelationWishEvent(FPlayer caller, Faction sender, Faction targetFaction, Relation currentRelation, Relation targetRelation) {
super(sender, caller);
this.targetFaction = targetFaction;
this.currentRelation = currentRelation;
this.targetRelation = targetRelation;
}
this.targetFaction = targetFaction;
this.currentRelation = currentRelation;
this.targetRelation = targetRelation;
}
public Faction getTargetFaction() {
return targetFaction;
}
public Faction getTargetFaction() {
return targetFaction;
}
public Relation getCurrentRelation() {
return currentRelation;
}
public Relation getCurrentRelation() {
return currentRelation;
}
public Relation getTargetRelation() {
return targetRelation;
}
public Relation getTargetRelation() {
return targetRelation;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
}

View File

@@ -6,52 +6,52 @@ import org.bukkit.event.Cancellable;
public class FactionRenameEvent extends FactionPlayerEvent implements Cancellable {
private boolean cancelled = false;
private String tag;
private boolean cancelled = false;
private String tag;
public FactionRenameEvent(FPlayer sender, String newTag) {
super(sender.getFaction(), sender);
tag = newTag;
}
public FactionRenameEvent(FPlayer sender, String newTag) {
super(sender.getFaction(), sender);
tag = newTag;
}
/**
* Get the player involved in the event.
*
* @return Player involved in the event.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
/**
* Get the player involved in the event.
*
* @return Player involved in the event.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
/**
* Get the faction tag before it was renamed.
*
* @return old faction tag.
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getOldFactionTag() {
return getFaction().getTag();
}
/**
* Get the faction tag before it was renamed.
*
* @return old faction tag.
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getOldFactionTag() {
return getFaction().getTag();
}
/**
* Get the new faction tag.
*
* @return new faction tag as String.
*/
public String getFactionTag() {
return tag;
}
/**
* Get the new faction tag.
*
* @return new faction tag as String.
*/
public String getFactionTag() {
return tag;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
}

View File

@@ -11,64 +11,64 @@ import org.bukkit.event.Cancellable;
*/
public class LandClaimEvent extends FactionPlayerEvent implements Cancellable {
private boolean cancelled;
private FLocation location;
private boolean cancelled;
private FLocation location;
public LandClaimEvent(FLocation loc, Faction f, FPlayer p) {
super(f, p);
cancelled = false;
location = loc;
}
public LandClaimEvent(FLocation loc, Faction f, FPlayer p) {
super(f, p);
cancelled = false;
location = loc;
}
/**
* Get the FLocation involved in this event.
*
* @return the FLocation (also a chunk) involved in this event.
*/
public FLocation getLocation() {
return this.location;
}
/**
* Get the FLocation involved in this event.
*
* @return the FLocation (also a chunk) involved in this event.
*/
public FLocation getLocation() {
return this.location;
}
/**
* Get the id of the faction.
*
* @return id of faction as String
* @deprecated use getFaction().getId() instead.
*/
@Deprecated
public String getFactionId() {
return getFaction().getId();
}
/**
* Get the id of the faction.
*
* @return id of faction as String
* @deprecated use getFaction().getId() instead.
*/
@Deprecated
public String getFactionId() {
return getFaction().getId();
}
/**
* Get the tag of the faction.
*
* @return tag of faction as String
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getFactionTag() {
return getFaction().getTag();
}
/**
* Get the tag of the faction.
*
* @return tag of faction as String
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getFactionTag() {
return getFaction().getTag();
}
/**
* Get the Player involved in this event.
*
* @return player from FPlayer.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
/**
* Get the Player involved in this event.
*
* @return player from FPlayer.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
}

View File

@@ -6,52 +6,52 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
public class LandUnclaimAllEvent extends FactionPlayerEvent implements Cancellable {
private boolean cancelled;
private boolean cancelled;
public LandUnclaimAllEvent(Faction f, FPlayer p) {
super(f, p);
}
public LandUnclaimAllEvent(Faction f, FPlayer p) {
super(f, p);
}
/**
* Get the id of the faction.
*
* @return id of faction as String
* @deprecated use getFaction().getId() instead.
*/
@Deprecated
public String getFactionId() {
return getFaction().getId();
}
/**
* Get the id of the faction.
*
* @return id of faction as String
* @deprecated use getFaction().getId() instead.
*/
@Deprecated
public String getFactionId() {
return getFaction().getId();
}
/**
* Get the tag of the faction.
*
* @return tag of faction as String
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getFactionTag() {
return getFaction().getTag();
}
/**
* Get the tag of the faction.
*
* @return tag of faction as String
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getFactionTag() {
return getFaction().getTag();
}
/**
* Get the Player involved in the event.
*
* @return Player from FPlayer.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
/**
* Get the Player involved in the event.
*
* @return Player from FPlayer.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
}

View File

@@ -11,59 +11,59 @@ import org.bukkit.event.Cancellable;
*/
public class LandUnclaimEvent extends FactionPlayerEvent implements Cancellable {
private boolean cancelled;
private FLocation location;
private boolean cancelled;
private FLocation location;
public LandUnclaimEvent(FLocation loc, Faction f, FPlayer p) {
super(f, p);
cancelled = false;
location = loc;
}
public LandUnclaimEvent(FLocation loc, Faction f, FPlayer p) {
super(f, p);
cancelled = false;
location = loc;
}
public FLocation getLocation() {
return this.location;
}
public FLocation getLocation() {
return this.location;
}
/**
* Get the id of the faction.
*
* @return id of faction as String
* @deprecated use getFaction().getId() instead.
*/
@Deprecated
public String getFactionId() {
return getFaction().getId();
}
/**
* Get the id of the faction.
*
* @return id of faction as String
* @deprecated use getFaction().getId() instead.
*/
@Deprecated
public String getFactionId() {
return getFaction().getId();
}
/**
* Get the tag of the faction.
*
* @return tag of faction as String
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getFactionTag() {
return getFaction().getTag();
}
/**
* Get the tag of the faction.
*
* @return tag of faction as String
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getFactionTag() {
return getFaction().getTag();
}
/**
* Get the Player involved in the event.
*
* @return Player from FPlayer.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
/**
* Get the Player involved in the event.
*
* @return Player from FPlayer.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
cancelled = c;
}
@Override
public void setCancelled(boolean c) {
cancelled = c;
}
}

View File

@@ -10,72 +10,72 @@ import org.bukkit.event.Cancellable;
*/
public class PowerLossEvent extends FactionPlayerEvent implements Cancellable {
private boolean cancelled = false;
private String message;
private boolean cancelled = false;
private String message;
public PowerLossEvent(Faction f, FPlayer p) {
super(f, p);
}
public PowerLossEvent(Faction f, FPlayer p) {
super(f, p);
}
/**
* Get the id of the faction.
*
* @return id of faction as String
* @deprecated use getFaction().getId() instead.
*/
@Deprecated
public String getFactionId() {
return getFaction().getId();
}
/**
* Get the id of the faction.
*
* @return id of faction as String
* @deprecated use getFaction().getId() instead.
*/
@Deprecated
public String getFactionId() {
return getFaction().getId();
}
/**
* Get the tag of the faction.
*
* @return tag of faction as String
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getFactionTag() {
return getFaction().getTag();
}
/**
* Get the tag of the faction.
*
* @return tag of faction as String
* @deprecated use getFaction().getTag() instead.
*/
@Deprecated
public String getFactionTag() {
return getFaction().getTag();
}
/**
* Get the Player involved in the event.
*
* @return Player from FPlayer.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
/**
* Get the Player involved in the event.
*
* @return Player from FPlayer.
* @deprecated use getfPlayer().getPlayer() instead.
*/
@Deprecated
public Player getPlayer() {
return getfPlayer().getPlayer();
}
/**
* Get the power loss message.
*
* @return power loss message as String.
*/
public String getMessage() {
return message;
}
/**
* Get the power loss message.
*
* @return power loss message as String.
*/
public String getMessage() {
return message;
}
/**
* Set the power loss message.
*
* @param message of powerloss
*/
public void setMessage(String message) {
this.message = message;
}
/**
* Set the power loss message.
*
* @param message of powerloss
*/
public void setMessage(String message) {
this.message = message;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
}

View File

@@ -9,20 +9,20 @@ import org.bukkit.event.Cancellable;
*/
public class PowerRegenEvent extends FactionPlayerEvent implements Cancellable {
private boolean cancelled = false;
private boolean cancelled = false;
public PowerRegenEvent(Faction f, FPlayer p) {
super(f, p);
}
public PowerRegenEvent(Faction f, FPlayer p) {
super(f, p);
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
}