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 NameDescription
FlagChangedEventCalled when a flag is changed.
MessageChangedEventCalled when a message is changed.
FlagPermissionTrustChangedEventCalled when a trust list is altered.
FlagPlayerTrustChangedEventCalled when a trust list is altered.
PlayerChangedAreaEventCalled 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.
PlayerChangedUniqueAreaEventCalled 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.
SectorCreateEventCalled when a sector is created.
SectorDeleteEventCalled when a sector is deleted.

Comments

Posts Quoted:
Reply
Clear All Quotes