Giving Credit

This commit is contained in:
Driftay
2019-12-02 13:55:38 -05:00
parent 9284707db6
commit f437144fba
168 changed files with 701 additions and 0 deletions

View File

@@ -6,6 +6,10 @@ import org.bukkit.event.HandlerList;
public class FPlayerEnteredFactionEvent extends FactionPlayerEvent {
/**
* @author Illyria Team
*/
private static final HandlerList handlers = new HandlerList();
private FPlayer fPlayer;
private Faction factionTo;

View File

@@ -9,6 +9,10 @@ import org.bukkit.event.Cancellable;
*/
public class FPlayerJoinEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
PlayerJoinReason reason;
boolean cancelled = false;

View File

@@ -6,6 +6,10 @@ import org.bukkit.event.Cancellable;
public class FPlayerLeaveEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
boolean cancelled = false;
private PlayerLeaveReason reason;

View File

@@ -12,6 +12,10 @@ import org.bukkit.event.Cancellable;
*/
public class FPlayerRoleChangeEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author Illyria Team
*/
private final Role from;
private boolean cancelled;
private Role to;

View File

@@ -4,6 +4,11 @@ import com.massivecraft.factions.FPlayer;
import org.bukkit.event.HandlerList;
public class FPlayerStoppedFlying extends FactionPlayerEvent {
/**
* @author Illyria Team
*/
private static final HandlerList handlers = new HandlerList();
private FPlayer fPlayer;

View File

@@ -12,6 +12,10 @@ import org.bukkit.event.HandlerList;
*/
public class FactionCreateEvent extends Event implements Cancellable {
/**
* @author FactionsUUID Team
*/
private static final HandlerList handlers = new HandlerList();
private String factionTag;

View File

@@ -11,6 +11,10 @@ import org.bukkit.event.Cancellable;
*/
public class FactionDisbandEvent extends FactionEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
private final Player sender;
private final PlayerDisbandReason reason;
private boolean cancelled = false;

View File

@@ -9,6 +9,10 @@ import org.bukkit.event.HandlerList;
*/
public class FactionEvent extends Event {
/**
* @author FactionsUUID Team
*/
private static final HandlerList handlers = new HandlerList();
private final Faction faction;

View File

@@ -8,6 +8,10 @@ import com.massivecraft.factions.Faction;
*/
public class FactionPlayerEvent extends FactionEvent {
/**
* @author FactionsUUID Team
*/
protected final FPlayer fPlayer;
public FactionPlayerEvent(Faction faction, FPlayer fPlayer) {

View File

@@ -10,6 +10,10 @@ import org.bukkit.event.HandlerList;
*/
public class FactionRelationEvent extends Event {
/**
* @author FactionsUUID Team
*/
private static final HandlerList handlers = new HandlerList();
private Faction fsender;

View File

@@ -6,6 +6,11 @@ import com.massivecraft.factions.struct.Relation;
import org.bukkit.event.Cancellable;
public class FactionRelationWishEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
private final Faction targetFaction;
private final Relation currentRelation;
private final Relation targetRelation;

View File

@@ -6,6 +6,10 @@ import org.bukkit.event.Cancellable;
public class FactionRenameEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
private boolean cancelled = false;
private String tag;

View File

@@ -11,6 +11,10 @@ import org.bukkit.event.Cancellable;
*/
public class LandClaimEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
private boolean cancelled;
private FLocation location;

View File

@@ -6,6 +6,10 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
public class LandUnclaimAllEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
private boolean cancelled;
public LandUnclaimAllEvent(Faction f, FPlayer p) {

View File

@@ -11,6 +11,10 @@ import org.bukkit.event.Cancellable;
*/
public class LandUnclaimEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
private boolean cancelled;
private FLocation location;

View File

@@ -11,6 +11,10 @@ import org.bukkit.event.Cancellable;
*/
public class PowerLossEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
private boolean cancelled = false;
private String message;
private double modified = 0;

View File

@@ -12,6 +12,10 @@ import org.bukkit.event.Cancellable;
*/
public class PowerRegenEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author Illyria Team
*/
private boolean cancelled = false;
private double modified = 0;