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

27 lines
816 B
Java
Raw Normal View History

package com.massivecraft.factions.event;
import org.bukkit.command.CommandSender;
import com.massivecraft.factions.entity.UPlayer;
2014-06-04 14:02:23 +02:00
import com.massivecraft.massivecore.event.EventMassiveCore;
2014-06-04 14:02:23 +02:00
public abstract class FactionsEventAbstractSender extends EventMassiveCore
{
// -------------------------------------------- //
// FIELDS
// -------------------------------------------- //
private final CommandSender sender;
public CommandSender getSender() { return this.sender; }
public UPlayer getUSender() { return this.sender == null ? null : UPlayer.get(this.sender); }
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
public FactionsEventAbstractSender(CommandSender sender)
{
this.sender = sender;
}
}