Skip to content
MFFbrokenSwing edited this page Nov 26, 2017 · 2 revisions

The mod provides events to allow you add your own features. You can find here an comprehensive list here :

ClaimChunkEvent

Cancelable This event is fired when a player claims a chunk for a faction. Cancel this event will prevent the claim.

CreateFactionEvent

Cancelable This event is fired when a player tries to create a faction. The disponibility of the name is already checked and the player is certified not being in a faction. Cancel this event will prevent the creation of the faction.

DescriptionChangedEvent

This event is fired when a player is attempting to change the description of a faction. You can use it to modify the new description (remove dirty words, cut it, add extras ...)

FactionCreatedEvent

This event is fired when a faction is created.

FactionDisbandedEvent

This event is fired when a faction is disbanded, it is fired two times, before members kicking and after members kicking (see subclasses Pre & Post).

FactionInfoEvent

This event is fired when a player request the informations of faction. You can customize the displayed informations.

FactionLevelUpEvent

This event is fired when a faction levels up.

GradeChangeEvent

This event is fired when the grade of a player changes.

HomeTeleportationEvent

Cancelable This event is fired when a player is requesting to teleport to the home of a faction. Cancel this event will prevent the teleportation.

JoinFactionEvent

Cancelable This event is fired when a player tries to join a faction. Cancel this event will prevent the player to join it.

LeaveFactionEvent

This event is fired when a player leaves a faction.

RecruitLinkChanged

This event is fired when a faction changes his recruit link.

SetHomeEvent

Cancelable This event is fired when a player is attempting to change the location of the home of a faction. Cancel this event will prevent the changement of the home position.

UnclaimChunkEvent

This event is fired when a player unclaim a chunk.

Clone this wiki locally