Plex/src/main/java/dev/plex/event/AdminSetRankEvent.java

49 lines
990 B
Java
Raw Normal View History

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
{
private static final HandlerList handlers = new HandlerList();
2020-11-05 21:17:14 +00:00
private CommandSource sender;
2020-11-05 21:17:14 +00:00
private PlexPlayer plexPlayer;
private Rank rank;
public AdminSetRankEvent(CommandSource sender, PlexPlayer plexPlayer, Rank rank)
2020-11-05 21:17:14 +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;
}
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;
}
public CommandSource getSender() {
return sender;
}
2020-11-05 21:17:14 +00:00
}