Interface AdditionsEvent
public interface AdditionsEvent
Custom AdditionsPlus events class.
This class can be called when firing a certain event to execute its actions.
-
Method Summary
Modifier and TypeMethodDescriptionaddPlaceholder
(String search, String replace) Add a placeholder to the replacement list.Get the author of this event.Get the event description.Get the name of this event.getExtraOption
(String key) Get the value of any extra option.Get the identifier of this event.Get the plugin name of this event.void
loadData()
Load the data of this event.void
perform
(AdditionsPlugin plugin, org.bukkit.entity.Player player) Perform the event.removePlaceholder
(String key) Remove a placeholder from the replacement list.
-
Method Details
-
getAuthor
String getAuthor()Get the author of this event.- Returns:
- Author of this event.
-
getDescription
String getDescription()Get the event description.- Returns:
- Description of this event.
-
getPluginName
String getPluginName()Get the plugin name of this event.- Returns:
- Plugin name of this event.
-
getEventName
String getEventName()Get the name of this event.- Returns:
- Get the name of this event.
-
addPlaceholder
Add a placeholder to the replacement list.- Parameters:
search
- String to search for.replace
- String to replace with.- Returns:
- Current
AdditionsEvent
instance.
-
removePlaceholder
Remove a placeholder from the replacement list.- Parameters:
key
- Placeholder key to remove.- Returns:
- Current
AdditionsEvent
instance.
-
loadData
void loadData()Load the data of this event. -
getIdentifier
String getIdentifier()Get the identifier of this event.- Returns:
- Identifier of this event.
-
getExtraOptions
-
getExtraOption
Get the value of any extra option.- Parameters:
key
- Key to search for.- Returns:
Object
value of the key when found, null otherwise.
-
perform
Perform the event.- Parameters:
plugin
- MainAdditionsPlugin
class to execute the event from.player
- Player to execute the event for.
-