2013-04-19 12:27:39 +02:00
|
|
|
package com.massivecraft.factions.event;
|
|
|
|
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
|
2014-09-17 13:17:33 +02:00
|
|
|
import com.massivecraft.factions.entity.MPlayer;
|
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; }
|
2016-01-24 20:07:09 +01:00
|
|
|
public MPlayer getMPlayer() { return this.sender == null ? null : MPlayer.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;
|
|
|
|
}
|
2015-01-10 13:00:29 +01:00
|
|
|
|
|
|
|
public EventFactionsAbstractSender(boolean async, CommandSender sender)
|
|
|
|
{
|
|
|
|
super(async);
|
|
|
|
this.sender = sender;
|
|
|
|
}
|
2016-01-24 20:07:09 +01:00
|
|
|
|
2013-04-19 12:27:39 +02:00
|
|
|
}
|