BKCommonLib/EventsAndListeners
Jump to navigation
Jump to search
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