Player Events

PLAYER JOIN

Event called when a player joins the server.

example:
  type: player_join
  actions:
    default:
    - 'message: &eWelcome %player% to the server.'

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

PLAYER LEAVE

Event called when a player leaves the server.

example:
  type: player_leave
  actions:
    default:
    - 'to_all: message: &e%player% left the server.'

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

PLAYER PRE JOIN

Event called when a player tries to join the server.

PLAYER RESPAWN

Event called when a player respawns.

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

PLAYER DEATH

Event called when a player dies.

PLAYER COMMAND

Event called when a player executes a command.

PLAYER CHAT

Event called when a player writes something in chat.

PLAYER LEVELUP

Event called when a player changes its level.

PLAYER WORLD CHANGE

Event called when a player is moving to another world.

PLAYER ATTACK

Event called when a player damages an entity.

On this event you can use target player variables and to_target actions.

PLAYER KILL

Event called when a player kills an entity.

On this event you can use target player variables and to_target actions.

PLAYER DAMAGE

Event called when a player is taking damage.

PLAYER ARMOR

Event called when a player equips or unequips armor.

PLAYER TELEPORT

Event called when a player teleports somehow.

PLAYER BED ENTER

Event called when a player enters a bed.

PLAYER OFFHAND

Event called when players interact with their offhand.

  • Swap items between main hand and offhand using the hotkey.

  • Use the inventory to move items to the offhand.

  • Use the inventory to recover items from the offhand.

PLAYER FISH

Event called when a player is fishing.

On this event you can use target player variables and to_target actions (Only if %state% is CAUGHT_ENTITY and %caught_type% is a Living Entity)

PLAYER OPEN INVENTORY

Event called when a player opens an inventory.

PLAYER CLOSE INVENTORY

Event called when a players closes an inventory.

PLAYER CLICK INVENTORY

Event called when a player clicks on an inventory.

PLAYER STATISTIC

Event called when a player statistic is incremented, like certain blocks breaked, jumps, items pickup...

PLAYER SNEAK

Event called when a player toggles their sneaking state.

PLAYER RUN

Event called when a player toggles their running state (starts or stops running).

PLAYER REGAIN HEALTH

Event called when a player regains/regenerates health.

PLAYER CHANGE FOOD

Event called when the food level of a player changes.

PLAYER TAB COMPLETE

Event called when a player is writing a command and about to display possible arguments. Mainly used with the tab_complete action.

Last updated

Was this helpful?