EventsAndListeners
/
Jump to navigation
Jump to search
m (Change old dev.bukkit.org wiki link to internal wikilink) |
No edit summary |
||
Line 1: | Line 1: | ||
==Introduction== | ==Introduction== | ||
BKCommonLib keeps track of several server events that can not be monitored using Bukkit alone. The following events (and listeners) are available: | BKCommonLib keeps track of several server events that can not be monitored using Bukkit alone. The following events (and listeners) are available: |
Latest revision as of 09:42, 12 October 2025
Introduction
BKCommonLib keeps track of several server events that can not be monitored using Bukkit alone. The following events (and listeners) are available:
Entities
The following entity related events are available:
- EntityAddEvent - when an entity is added to the server
- EntityRemoveEvent - when an entity is removed from a world
- EntityRemoveFromServerEvent - when an entity is permanently removed from the server
- EntityMoveEvent - fired every tick to update entity movement. This event is optimized.
Packets
The following events are available when registering a PacketListener:
- PacketReceiveEvent when a packet is received from the client
- PacketSendEvent when a packet is about to be sent to the client
Internal
Developers should ignore these events, as they are mainly used to keep track of internal BKCommonLib changes:
- TimingsListener for keeping track of execution times on the server