2020-11-05 21:17:14 +00:00
|
|
|
package me.totalfreedom.plex.event;
|
|
|
|
|
|
|
|
import me.totalfreedom.plex.player.PlexPlayer;
|
|
|
|
import me.totalfreedom.plex.rank.enums.Rank;
|
|
|
|
import org.bukkit.event.Event;
|
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
|
|
|
|
public class AdminSetRankEvent extends Event
|
|
|
|
{
|
|
|
|
private final HandlerList handlers = new HandlerList();
|
|
|
|
|
|
|
|
private PlexPlayer plexPlayer;
|
|
|
|
private Rank rank;
|
|
|
|
|
|
|
|
public AdminSetRankEvent(PlexPlayer plexPlayer, Rank rank)
|
|
|
|
{
|
|
|
|
this.plexPlayer = plexPlayer;
|
|
|
|
this.rank = rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public HandlerList getHandlers()
|
|
|
|
{
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
2020-11-06 01:29:38 +00:00
|
|
|
public PlexPlayer getPlexPlayer()
|
|
|
|
{
|
2020-11-05 21:17:14 +00:00
|
|
|
return plexPlayer;
|
|
|
|
}
|
|
|
|
|
2020-11-06 01:29:38 +00:00
|
|
|
public Rank getRank()
|
|
|
|
{
|
2020-11-05 21:17:14 +00:00
|
|
|
return rank;
|
|
|
|
}
|
|
|
|
}
|