Events Tutorial
Each of the events in the config follows a certain format. Here you can find the explanation of the options you can use. Everytime you modify something in this file you must reload the plugin using /ce reload
Type
The type of the event to detect. You can find more information about event types on the Event Types page.
Conditions
The conditions of this event. If the conditions are accomplished, certain actions will be executed. You can find more information about conditions in the Conditions page.
Actions
The actions to execute when the conditions of the events are accomplished. You can find more information about actions in the Actions page.
Action Groups
Actions are always defined under a group with a certain name. When conditions from an event are accomplished, the actions inside the "default" group will be executed, unless specified otherwise.
For example, if you add cooldown to the event, the default action group will be executed if the player is not on cooldown. Instead, the cooldown action group will be executed if the player has a remaining cooldown.
The execute option also allows you to execute actions from a different group.
Ignore With Permission
You can set a permission to completely ignore this event. If the player accomplishes the conditions having this permission, actions will not be executed for him.
Ignore If Cancelled
When this option is enabled, it will prevent the execution if the event was already cancelled by another plugin.
Allow Math formulas in Conditions
If you want to compare formulas in the conditions of an event, you must enable this option.
One Time
If is set to true, players will execute the actions of this event just once. You can also set an action group that will execute when a player accomplishes the conditions again, but already had executed the default actions.
The action group MUST be called "one_time".
Cooldown
Here you can define a cooldown for this event. If the player accomplishes the conditions, the player will need to wait certain time before executing the actions again. Write the cooldown in seconds. You can also set an action group that will execute when a players accomplishes the conditions again but is in cooldown.
The action group MUST be called "cooldown".
OP players will bypass the cooldown so make sure you are not OP when testing this feature.
Enabled
Set this option to false to disable the event without removing it from the config. If you want the event to be active just set it to true or remove this option.
Repetitive Time
If the event type is set to "repetitive"
or "repetitive_server"
, this option defines the period of time in TICKS (20 ticks = 1 second) when checking the conditions.
Prevent Cooldown/One Time Activation
A useful property when using the "execute" option in conditions. Here you can define a list of action groups where you don't want to activate cooldown/one time.
In some cases, you will have action groups used only to show some errors to the player. If you don't add this property to an event like this, it will result in users executing the action group for error messages, and activating the one time at the same time, meaning the player will not be able to use this event anymore. The real event was not really executed, so this option helps you to fix that.
Custom Event Data
ConditionalEvents allows you to check for any event you want, even from other plugins. You can find an explained example to show you how these events work in the Custom Events page.
Last updated