Other Events
ENTITY INTERACT
Event called when a player right clicks an entity.
Variables:
ConditionalEvents entity variables (for clicked entity)
ConditionalEvents item variables (for item in hand)
On this event you can use target player variables and to_target actions.
ENTITY SPAWN
Event called when an entity (animal or monster) is going to spawn.
Variables:
%reason% (The reason of the event, why is the entity going to spawn. All reasons here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html)
ConditionalEvents entity variables (for entity about to spawn)
This is not a player event, which means you can't use player variables or player actions.
CONSOLE COMMAND
Event called when the console executes a command.
Variables:
%command% (The full command the console used)
%main_command% (The main command without arguments)
%arg_X% (The argument in the X position of the command. If the command is
announce hello world
the %arg_1% variable would be "hello" and the %arg_2% would be "world")%args_length% (The amount of arguments of the command)
%args_substring_<arg1>-<arg2>% (This variable will create a text using a first argument and a last argument. For example, if the command is
announce I am currently doing a Youtube livestreaming
, you could use the %args_substring_1-6% variable to take arg1, arg2,...,arg6 and get the text that the player is announcing. If you don't care about the arguments length, instead of 6 use a large number like 100)
This is not a player event, which means you can't use player variables or player actions.
SERVER START
Event called when the server starts and the plugin is enabled.
This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables.
This is not a player event, which means you can't use player variables or player actions.
SERVER STOP
Event called when the server stops and the plugin is disabled.
This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables.
This is not a player event, which means you can't use player variables or player actions.
REPETITIVE
The repetitive event works by checking for conditions for each player periodically. The time is defined in the repetitive_time
option. This option defines the period of time in TICKS (20 ticks = 1 second) when checking the conditions.
This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables.
REPETITIVE SERVER
The repetitive server event works by checking for conditions of the server periodically (like local time, but no player variables). The time is defined in the repetitive_time
option. This option defines the period of time in TICKS (20 ticks = 1 second) when checking the conditions.
This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables.
This is not a player event, which means you can't use player variables or player actions.
CALL
The call event is a special event that will be executed ONLY from the actions of another event (using the call_event action), or using the /ce call
command.
This means you can now check for conditions after actions execution, using a complementary call event. You can also pass variables from an event to another to make it more specific.
This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables. Remember that a call event can be executed passing some variables from another event.
This event will be a player event if the original event which was called from is a player event.
CUSTOM
Any custom event that you want. You can use events from other plugins, more info on the Custom Events page.
Last updated