Class PlayerClueCompletedEvent
java.lang.Object
org.bukkit.event.Event
com.electro2560.dev.cluescrolls.events.PlayerClueCompletedEvent
public class PlayerClueCompletedEvent
extends org.bukkit.event.Event
Fired when a player completes a clue on one of their clue scrolls.
- Since:
- 2.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns how many times the clue needed to be completed as defined in the configMap of data key and data value as defined in config for that clueThe type of the clue.static org.bukkit.event.HandlerListorg.bukkit.event.HandlerListReturns lore format of clue as defined in the configfinal org.bukkit.entity.PlayerReturns the player involved in this eventMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerClueCompletedEvent
-
-
Method Details
-
getPlayer
public final org.bukkit.entity.Player getPlayer()Returns the player involved in this event- Returns:
- Player involved in this event
- Since:
- 2.1.0
-
getLoreFormat
Returns lore format of clue as defined in the configExample - invalid input: '&f'* Kill %amount% skeleton: %completed%
- Returns:
- Lore format of clue
- Since:
- 2.1.0
-
getClueType
The type of the clue.Example - break, place, enchant, fish, etc.
- Returns:
- Type of clue
- Since:
- 2.1.0
-
getAmount
public double getAmount()Returns how many times the clue needed to be completed as defined in the config- Returns:
- How many times the clue needed to be completed
- Since:
- 2.1.0
-
getClueData
Map of data key and data value as defined in config for that clue- Returns:
- Map of keys and meta values from config that are on this clue
- Since:
- 2.3.0
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-