Factions3/src/com/massivecraft/factions/event/FactionsEventAbstractSender.java

27 lines
769 B
Java
Raw Normal View History

package com.massivecraft.factions.event;
import org.bukkit.command.CommandSender;
2013-04-22 09:37:53 +02:00
import com.massivecraft.factions.entity.FPlayer;
import com.massivecraft.mcore.event.MCoreEvent;
public abstract class FactionsEventAbstractSender extends MCoreEvent
{
// -------------------------------------------- //
// FIELDS
// -------------------------------------------- //
private final CommandSender sender;
public CommandSender getSender() { return this.sender; }
public FPlayer getFSender() { return FPlayer.get(this.sender); }
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
public FactionsEventAbstractSender(CommandSender sender)
{
this.sender = sender;
}
}