Other Events

ENTITY INTERACT

Event called when a player right clicks an entity.

example:
  type: entity_interact
  conditions:
  - '%entity% == PLAYER'
  - '%player_is_sneaking% == yes'
  actions:
    default:
    - "player_command: trade %target:player_name%"
circle-check
circle-info

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.

example:
  type: entity_spawn
  conditions:
  - '%entity% == WITHER'
  - '%entity_world% == survival'
  actions:
    default:
    - "cancel_event: true"
circle-check
circle-exclamation

CONSOLE COMMAND

Event called when the console executes a command.

circle-check
circle-exclamation

SERVER START

Event called when the server starts and the plugin is enabled.

circle-info

This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables.

circle-exclamation
circle-exclamation

SERVER STOP

Event called when the server stops and the plugin is disabled.

circle-info

This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables.

circle-exclamation
circle-exclamation

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.

circle-info

This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables.

circle-exclamation

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.

circle-info

This event has no variables, but you can still use ConditionalEvents variables or PlaceholderAPI variables.

circle-exclamation
circle-exclamation

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.

circle-info

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.

circle-info

This event will be a player event if the original event which was called from is a player event.

circle-exclamation

CUSTOM

Any custom event that you want. You can use events from other plugins, more info on the Custom Events page.

Last updated