DeathSwap API
Custom Events
DeathSwapNewGameEvent | Called when a new game is started | ||
DeathSwapSwapEvent | Called when two players swap positions | ||
DeathSwapWinGameEvent | Called 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. |
A JavaDoc for the API would be very useful right now!!