public class MissionCompleteEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
MissionCompleteEvent(SuperiorPlayer superiorPlayer,
IMissionsHolder missionsHolder,
Mission<?> mission,
java.util.List<org.bukkit.inventory.ItemStack> itemRewards,
java.util.List<java.lang.String> commandRewards) |
MissionCompleteEvent(SuperiorPlayer superiorPlayer,
Mission<?> mission,
boolean islandMission,
java.util.List<org.bukkit.inventory.ItemStack> itemRewards,
java.util.List<java.lang.String> commandRewards)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCommandRewards()
Get the list of commands that will be given as a reward.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
java.util.List<org.bukkit.inventory.ItemStack> |
getItemRewards()
Get the list of items that will be given as a reward.
|
Mission<?> |
getMission()
Get the mission that was completed.
|
IMissionsHolder |
getMissionsHolder()
Get the mission holder that the mission was completed for.
|
SuperiorPlayer |
getPlayer()
Get the player who completed the mission.
|
boolean |
isCancelled() |
boolean |
isIslandMission()
Check whether the mission is an island mission.
|
void |
setCancelled(boolean cancelled) |
@Deprecated public MissionCompleteEvent(SuperiorPlayer superiorPlayer, Mission<?> mission, boolean islandMission, java.util.List<org.bukkit.inventory.ItemStack> itemRewards, java.util.List<java.lang.String> commandRewards)
superiorPlayer
- The player who completed the mission.mission
- The mission that was completed.islandMission
- Flag that determines whether or not the mission is an island mission.itemRewards
- The list of items that will be given as a reward.commandRewards
- The list of commands that will be ran as a reward.public MissionCompleteEvent(SuperiorPlayer superiorPlayer, IMissionsHolder missionsHolder, Mission<?> mission, java.util.List<org.bukkit.inventory.ItemStack> itemRewards, java.util.List<java.lang.String> commandRewards)
public SuperiorPlayer getPlayer()
public IMissionsHolder getMissionsHolder()
public Mission<?> getMission()
public java.util.List<org.bukkit.inventory.ItemStack> getItemRewards()
public java.util.List<java.lang.String> getCommandRewards()
public boolean isIslandMission()
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()