Plex/src/main/java/me/totalfreedom/plex/event/AdminSetRankEvent.java

49 lines
1.0 KiB
Java
Raw Normal View History

2020-11-05 21:17:14 +00:00
package me.totalfreedom.plex.event;
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
{
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
}