Factions3/src/main/java/com/massivecraft/factions/event/EventFactionsAbstractSender.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 16:47:01 +02:00
public abstract class EventFactionsAbstractSender 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
// -------------------------------------------- //
2014-06-04 16:47:01 +02:00
public EventFactionsAbstractSender(CommandSender sender)
{
this.sender = sender;
}
}