HytaleJS

Events

All available event types

Player Connection Events

PlayerConnectEvent

Fired when a player connects to the server.

Prop

Type

PlayerDisconnectEvent

Fired when a player disconnects from the server.

Prop

Type

PlayerSetupConnectEvent

Fired during player connection setup (before full connection).

Prop

Type

PlayerSetupDisconnectEvent

Fired when player disconnects during setup phase.

Prop

Type

Player Action Events

PlayerChatEvent

Fired when a player sends a chat message. Can be cancelled.

Prop

Type

PlayerReadyEvent

Fired when a player has finished loading.

Prop

Type

PlayerInteractEvent

Fired when a player interacts with something.

Prop

Type

PlayerCraftEvent

Fired when a player crafts an item.

Prop

Type

PlayerMouseButtonEvent

Fired on mouse button input.

Prop

Type

PlayerMouseMotionEvent

Fired on mouse motion.

Prop

Type

World Events

AddPlayerToWorldEvent

Fired when a player is added to a world.

Prop

Type

DrainPlayerFromWorldEvent

Fired when a player is removed from a world.

Prop

Type

PrepareUniverseEvent

Fired when the universe is being prepared.

Prop

Type

Block Events

BreakBlockEvent

Fired when a block is broken. Can be cancelled.

Prop

Type

PlaceBlockEvent

Fired when a block is placed. Can be cancelled.

Prop

Type

DamageBlockEvent

Fired when a block takes damage. Can be cancelled.

Prop

Type

UseBlockEvent

Fired when a block is used/activated.

Prop

Type

Item Events

DropItemEvent

Fired when an item is dropped. Can be cancelled.

Prop

Type

InteractivelyPickupItemEvent

Fired when an item is picked up. Can be cancelled.

Prop

Type

SwitchActiveSlotEvent

Fired when the active hotbar slot changes.

Prop

Type

Entity Events

EntityEvent

Fired when an entity spawns.

Prop

Type

EntityRemoveEvent

Fired when an entity is removed.

Prop

Type

LivingEntityInventoryChangeEvent

Fired when a living entity's inventory changes.

Prop

Type

LivingEntityUseBlockEvent

Fired when a living entity uses a block.

Prop

Type

Game Mode Events

ChangeGameModeEvent

Fired when a player's game mode changes. Can be cancelled.

Prop

Type

Crafting Events

CraftRecipeEvent

Fired when a recipe is crafted. Can be cancelled.

Prop

Type

Permission Events

PlayerPermissionChangeEvent

Fired when a player's permissions change.

Prop

Type

GroupPermissionChangeEvent

Fired when a group's permissions change.

Prop

Type

PlayerGroupEvent

Fired when a player's group changes.

Prop

Type

Server Events

BootEvent

Fired when the server starts.

Prop

Type

ShutdownEvent

Fired when the server shuts down.

Prop

Type

Other Events

DiscoverZoneEvent

Fired when a zone is discovered.

Prop

Type

PlayerRefEvent

Base event with PlayerRef.

Prop

Type

PlayerEvent

Base event with Player.

Prop

Type

On this page