2013-04-19 12:27:39 +02:00
|
|
|
package com.massivecraft.factions.event;
|
|
|
|
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
|
2013-04-22 17:59:51 +02:00
|
|
|
import com.massivecraft.factions.entity.UPlayer;
|
2014-06-04 14:02:23 +02:00
|
|
|
import com.massivecraft.massivecore.event.EventMassiveCore;
|
2013-04-19 12:27:39 +02:00
|
|
|
|
2014-06-04 16:47:01 +02:00
|
|
|
public abstract class EventFactionsAbstractSender extends EventMassiveCore
|
2013-04-19 12:27:39 +02:00
|
|
|
{
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// FIELDS
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
private final CommandSender sender;
|
|
|
|
public CommandSender getSender() { return this.sender; }
|
2013-04-24 11:16:37 +02:00
|
|
|
public UPlayer getUSender() { return this.sender == null ? null : UPlayer.get(this.sender); }
|
2013-04-19 12:27:39 +02:00
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
2014-06-04 16:47:01 +02:00
|
|
|
public EventFactionsAbstractSender(CommandSender sender)
|
2013-04-19 12:27:39 +02:00
|
|
|
{
|
|
|
|
this.sender = sender;
|
|
|
|
}
|
|
|
|
}
|