Class AllCategoryQuestsCompletedEvent
java.lang.Object
org.bukkit.event.Event
com.ordwen.odailyquests.api.events.AllCategoryQuestsCompletedEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class AllCategoryQuestsCompletedEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Called when a player completed all his quests from a category.
If defined, this method sends the reward associated with the category to the player.
- Since:
- 2.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionAllCategoryQuestsCompletedEvent(org.bukkit.entity.Player player, String category) Constructor for the AllQuestsFromCategoryCompleted. -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the quests' category.static org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.entity.PlayerGet the player who completed all his quests.booleanvoidsetCancelled(boolean isCancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
AllCategoryQuestsCompletedEvent
Constructor for the AllQuestsFromCategoryCompleted.- Parameters:
player- player who completed all his quests.category- name of the category.
-
-
Method Details
-
getHandlers
@NotNull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean isCancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player who completed all his quests.- Returns:
- Player object
-
getCategory
Get the name of the quests' category.- Returns:
- the name of the quests' category.
-