Skip to content
Thomas Cordua-von Specht edited this page Dec 22, 2016 · 4 revisions

Plugin API

Events

There are currently 4 events. PlayerJoinArenaEvent, PlayerLeaveArenaEvent, PlayerPowerupEvent, and TeamWinEvent.

PlayerJoinArenaEvent
When a player join a game this event is called. This is a cancellable event if you need to stop the player from joining the game. You can get the player that joined and the game that he/she is joining.

PlayerLeaveArenaEvent
When a player leaves the game this events is called. This event is not cancellable. You can get the player that left, The game that they left, and whether is was from the disconnecting from the server or leave other ways.

PlayerPowerupEvent
When a player uses a powerup this event is called. This event is cancellable. You can get the player that used the powerup, get the game he/she is in, and can get the id type of the powerup.

TeamWinEvent
When a team wins a game this event is called. This event is not cancellable. You can get the set of players in the team. and get the team name of the winning team.

Powerup API

Coming in a future update.

<< Additional Information || API

Clone this wiki locally