public class MissionResetEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
MissionResetEvent(SuperiorPlayer superiorPlayer,
IMissionsHolder missionsHolder,
Mission<?> mission)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
Mission<?> |
getMission()
Get the mission that was reset.
|
IMissionsHolder |
getMissionsHolder()
Get the holder of the mission that the mission was reset for.
|
SuperiorPlayer |
getPlayer()
Get the player who reset the mission for the holder.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
public MissionResetEvent(@Nullable SuperiorPlayer superiorPlayer, IMissionsHolder missionsHolder, Mission<?> mission)
superiorPlayer
- The player that reset the mission.
If null, the mission was reset by console.missionsHolder
- The holder of the mission that the mission was reset for.mission
- The mission that was reset.@Nullable public SuperiorPlayer getPlayer()
public IMissionsHolder getMissionsHolder()
public Mission<?> getMission()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()