Factions/src/com/massivecraft/factions/event/FactionsEventInvitedChange.java

45 lines
1.4 KiB
Java
Raw Normal View History

package com.massivecraft.factions.event;
import org.bukkit.command.CommandSender;
import org.bukkit.event.HandlerList;
import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.Faction;
public class FactionsEventInvitedChange extends FactionsEventAbstractSender
{
2013-04-10 09:34:14 +02:00
// -------------------------------------------- //
// REQUIRED EVENT CODE
// -------------------------------------------- //
private static final HandlerList handlers = new HandlerList();
2013-04-10 09:34:14 +02:00
@Override public HandlerList getHandlers() { return handlers; }
public static HandlerList getHandlerList() { return handlers; }
2013-04-10 09:34:14 +02:00
// -------------------------------------------- //
// FIELDS
// -------------------------------------------- //
private final FPlayer fplayer;
public FPlayer getFPlayer() { return this.fplayer; }
private final Faction faction;
public Faction getFaction() { return this.faction; }
private boolean newInvited;
public boolean isNewInvited() { return this.newInvited; }
public void setNewInvited(boolean newInvited) { this.newInvited = newInvited; }
2013-04-10 09:34:14 +02:00
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
public FactionsEventInvitedChange(CommandSender sender, FPlayer fplayer, Faction faction, boolean newInvited)
2013-04-10 09:34:14 +02:00
{
super(sender);
2013-04-10 09:34:14 +02:00
this.fplayer = fplayer;
this.faction = faction;
this.newInvited = newInvited;
2013-04-10 09:34:14 +02:00
}
}