public class WauzPlayerEventQuestComplete extends java.lang.Object implements WauzPlayerEvent
Modifier and Type | Field and Description |
---|---|
private WauzQuest |
quest
The quest to complete.
|
private java.util.List<org.bukkit.inventory.ItemStack> |
questLoot
The loot item stacks handed out to the player.
|
private java.lang.String |
questSlot
The slot this quest is saved in.
|
core
Constructor and Description |
---|
WauzPlayerEventQuestComplete(WauzQuest quest,
java.lang.String questSlot)
Creates an event to complete the given quest.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.bukkit.entity.Player player)
Executes the event for the given player.
|
void |
setQuestLoot(java.util.List<org.bukkit.inventory.ItemStack> questLoot) |
private WauzQuest quest
private java.lang.String questSlot
private java.util.List<org.bukkit.inventory.ItemStack> questLoot
public WauzPlayerEventQuestComplete(WauzQuest quest, java.lang.String questSlot)
quest
- The quest to complete.questSlot
- The slot this quest is saved in.public boolean execute(org.bukkit.entity.Player player)
execute
in interface WauzPlayerEvent
player
- The player for the execution.PlayerQuestConfigurator.setQuestPhase(Player, String, int)
,
PlayerConfigurator.setCharacterQuestSlot(Player, String, String)
,
PlayerQuestConfigurator.setQuestCooldown(Player, String)
,
PlayerQuestConfigurator.addQuestCompletions(Player, String)
,
RelationLevel.getRewardMultiplier()
,
ExperienceCalculator.grantExperience(Player, int, double, org.bukkit.Location)
,
WauzRewards.earnMmoRpgToken(Player)
public void setQuestLoot(java.util.List<org.bukkit.inventory.ItemStack> questLoot)
questLoot
- The loot item stacks handed out to the player.