API
Before utilizing the API, make sure that the AdvancedVanish
plugin is enabled by addingdepend: [AdvancedVanish]
or softdepend: [AdvancedVanish]
to your plugin's plugin.yml
.
Even though AdvancedVanish was made in Kotlin, the API can still be accessed from Java.
Adding the Dependency
Add this repository to your pom.xml
:
Add the dependency and replace <version>...</version>
with the current version:
Methods
Extensions (Kotlin Only)
Events
PrePlayerVanishEvent
- Gets called before vanishing a player, implementsCancellable
PlayerVanishEvent
- Gets called after a player vanishes.PrePlayerUnVanishEvent
- Gets called before a player unvanishes, implementsCancellable
.PlayerUnVanishEvent
- Gets called after a player unvanishes.
Example Usage
Last updated