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%"

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"

CONSOLE COMMAND

Event called when the console executes a command.

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.

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.

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.

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

Was this helpful?