Developer
Developer API documentation:
This is the first version of the API (implemented in v3.0.0).
- TeleportEvent
Methods:
Events:
How to implement an Event? ... ... ...
TeleportEvent
Called before the player gets teleported.
Method summary:
- getPlayer() - returns the player that is being teleported.
- getDestination() - returns the destination location of the Teleport. (end location)
- getSourceLocation() - returns the source location of the Teleport. (start location)
- setCancelled(boolean) - If boolean is true, it will cancel the event and the player will not be teleported.
- isCancelled() - returns a true boolean if the event is being cancelled.
The documentation is going to be better....
Comments