Skip to content

Event System

The event system is used to react to actions happening within the core. It allows you to listen to core events or create your own custom events.


When to use

  • You want to react to player actions (join, quit, interaction, etc.)
  • You want to trigger logic based on events

Topics

  • [[Core Events|Core-API/Event-System/Core-Events]]
  • [[Own Events|Core-API/Event-System/Events]]
  • [[Listener|Core-API/Event-System/Listener]]

Common pitfalls

  • Doing heavy work inside listeners (lags the server)
  • Forgetting to register listeners
  • Using events where a direct call would be simpler