public class WauzPlayerEventQuestAccept extends java.lang.Object implements WauzPlayerEvent
Modifier and Type | Field and Description |
---|---|
private WauzQuest |
quest
The quest to accept.
|
private java.lang.String |
questSlot
The slot this quest will be saved to.
|
core
Constructor and Description |
---|
WauzPlayerEventQuestAccept(WauzQuest quest,
java.lang.String questSlot)
Creates an event to accept the given quest.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.bukkit.entity.Player player)
Executes the event for the given player.
|
private WauzQuest quest
private java.lang.String questSlot
public WauzPlayerEventQuestAccept(WauzQuest quest, java.lang.String questSlot)
quest
- The quest to accept.questSlot
- The slot this quest will be saved to.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)