2021-01-03 07:21:15 +00:00
|
|
|
package dev.plex.event;
|
2020-11-05 21:17:14 +00:00
|
|
|
|
2021-01-03 07:21:15 +00:00
|
|
|
import dev.plex.command.source.CommandSource;
|
|
|
|
import dev.plex.player.PlexPlayer;
|
|
|
|
import dev.plex.rank.enums.Rank;
|
2020-11-05 21:17:14 +00:00
|
|
|
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
|
|
|
}
|