Bound - Enter (Event) — SkBee

Addon: SkBee · Category: Event · Since: 1.0.0, 1.12.2 (Bound IDs)

Syntax

[on] (bound enter|enter bound) [with id %-string%]

Description

Called when a player enters a bound. Optional ID of bound. 'event-string' = bound ID. NOTE: Due to breaking changes in Bukkit API, enter/exit events will not be called when a player mounts/dismounts an entity if running SkBee 3.5.0+ on MC 1.20.4 and below.

Event Values

  • event-bound
  • event-boundmovereason
  • event-player
  • event-string

Examples

on bound enter:
	if event-bound = {bounds::spawn}:
		send "You entered spawn!"
on enter bound with id "spawn":
	cancel event

on bound enter:
	if event-bound move reason = teleport:
		cancel event

View source