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

34 lines
946 B
Java
Raw Normal View History

package com.massivecraft.factions.event;
import org.bukkit.command.CommandSender;
import com.massivecraft.factions.entity.MPlayer;
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 MPlayer getMPlayer() { return this.sender == null ? null : MPlayer.get(this.sender); }
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
2014-06-04 16:47:01 +02:00
public EventFactionsAbstractSender(CommandSender sender)
{
this.sender = sender;
}
2015-01-10 13:00:29 +01:00
public EventFactionsAbstractSender(boolean async, CommandSender sender)
{
super(async);
this.sender = sender;
}
}