2020-11-05 21:17:14 +00:00
|
|
|
package me.totalfreedom.plex.event;
|
|
|
|
|
2020-11-06 18:19:38 +00:00
|
|
|
import me.totalfreedom.plex.command.source.CommandSource;
|
2020-11-05 21:17:14 +00:00
|
|
|
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
|
|
|
|
{
|
2020-11-06 18:19:38 +00:00
|
|
|
private static final HandlerList handlers = new HandlerList();
|
2020-11-05 21:17:14 +00:00
|
|
|
|
2020-11-06 18:19:38 +00:00
|
|
|
private CommandSource sender;
|
2020-11-05 21:17:14 +00:00
|
|
|
private PlexPlayer plexPlayer;
|
|
|
|
private Rank rank;
|
|
|
|
|
2020-11-06 18:19:38 +00:00
|
|
|
public AdminSetRankEvent(CommandSource sender, PlexPlayer plexPlayer, Rank rank)
|
2020-11-05 21:17:14 +00:00
|
|
|
{
|
2020-11-06 18:19:38 +00:00
|
|
|
this.sender = sender;
|
2020-11-05 21:17:14 +00:00
|
|
|
this.plexPlayer = plexPlayer;
|
|
|
|
this.rank = rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public HandlerList getHandlers()
|
|
|
|
{
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
2020-11-06 18:19:38 +00:00
|
|
|
public static HandlerList getHandlerList()
|
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
2020-11-06 18:19:38 +00:00
|
|
|
|
|
|
|
public CommandSource getSender() {
|
|
|
|
return sender;
|
|
|
|
}
|
2020-11-05 21:17:14 +00:00
|
|
|
}
|