mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-06-23 13:04:41 +02:00
41 lines
1.2 KiB
Java
41 lines
1.2 KiB
Java
package com.massivecraft.factions.event;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
import com.massivecraft.factions.Rel;
|
|
import com.massivecraft.factions.entity.MPlayer;
|
|
|
|
public class EventFactionsRankChange extends EventFactionsAbstractSender
|
|
{
|
|
// -------------------------------------------- //
|
|
// REQUIRED EVENT CODE
|
|
// -------------------------------------------- //
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
@Override public HandlerList getHandlers() { return handlers; }
|
|
public static HandlerList getHandlerList() { return handlers; }
|
|
|
|
// -------------------------------------------- //
|
|
// FIELDS
|
|
// -------------------------------------------- //
|
|
|
|
private final MPlayer mplayer;
|
|
public MPlayer getMPlayer() { return this.mplayer; }
|
|
|
|
private Rel newRank;
|
|
public Rel getNewRank() { return this.newRank; }
|
|
public void setNewRank(Rel newRole) { this.newRank = newRole; }
|
|
|
|
// -------------------------------------------- //
|
|
// CONSTRUCT
|
|
// -------------------------------------------- //
|
|
|
|
public EventFactionsRankChange(CommandSender sender, MPlayer mplayer, Rel newRank)
|
|
{
|
|
super(sender);
|
|
this.mplayer = mplayer;
|
|
this.newRank = newRank;
|
|
}
|
|
}
|