Developer API/Events
Events
Flags posses a small set of events you can listen to. Below is the list of available events, all of them implement Cancellable.
Event Name | Description |
FlagChangedEvent | Called when a flag is changed. |
MessageChangedEvent | Called when a message is changed. |
FlagPermissionTrustChangedEvent | Called when a trust list is altered. |
FlagPlayerTrustChangedEvent | Called when a trust list is altered. |
PlayerChangedAreaEvent | Called when a player crosses the border from one area to another (including moving into the wilderness). Cancelling teleports the player to their last recorded location. May not fire if the operator has disabled it in config.yml. |
PlayerChangedUniqueAreaEvent | Called when a player crosses the border from one area to another and the area is not an inheriting subdivision. Cancelling teleports the player to their last recorded location. May not fire if the operator has disabled it in config.yml. |
SectorCreateEvent | Called when a sector is created. |
SectorDeleteEvent | Called when a sector is deleted. |
Comments