DeathSwap API

HomeTodoDevBuildsShowcase

api

Custom Events

DeathSwapNewGameEventCalled when a new game is started
DeathSwapSwapEventCalled when two players swap positions
DeathSwapWinGameEventCalled when a player loses

To implement:

Use these events like you would a normal bukkit event, but import from DeathSwap instead.

Methods

DeathSwapNewGameEvent:

getPlayerOne()Gets the first player.
getPlayerTwo()Gets the second player.

DeathSwapSwapEvent:

getPlayers()Gets the players in the game.

DeathSwapWinGameEvent:

getWinner()Gets the winner of the game.
getLoser()Gets the loser of the game.

Comments

Posts Quoted:
Reply
Clear All Quotes