HomeJavaModsAdvancedVanish
AdvancedVanish
AdvancedVanish [1.8 - 1.19]
AdvancedVanish is a fully customizable and advanced vanish plugin made with Kotlin.

https://quantioms.gitbook.io/advancedvanish/

Features
API
Spoiler: API Information
Before utilizing the API, make sure that the AdvancedVanish plugin is
enabled, or add depend: [AdvancedVanish] or softdepend: [AdvancedVanish] to
your plugin's plugin.yml.

Maven
Add this repository to your pom.xml:
Code (XML):
<repository>
<id>repsy </id>
<name>quantiom </name>
<url>https://repo.repsy.io/mvn/quantiom/minecraft </url>
</repository>
Add the dependency and replace <version>...</version> with the current version:
Code (XML):
<dependency>
<groupId>me.quantiom </groupId>
<artifactId>advancedvanish </artifactId>
<version>1.2.2 </version>
</dependency>
Methods
Code (Kotlin):
AdvancedVanishAPI. vanishPlayer (player : Player ) : Unit
AdvancedVanishAPI. unVanishPlayer (player : Player ) : Unit
AdvancedVanishAPI. isPlayerVanished (player : Player ) : Boolean
AdvancedVanishAPI. canSee (player : Player, target : Player ) : Boolean
Extensions
Code (Kotlin):
Player. isVanished ( ) : Boolean
Events
  • PrePlayerVanishEvent - Gets called before vanishing a player, implements Canellable.
  • PlayerVanishEvent - Gets called after a player vanishes.
  • PrePlayerUnVanishEvent - Gets called before a player unvanishes, imeplements Cancellable.
  • PlayerUnVanishEvent - Gets called after a player unvanishes.
Example Usage
Code (Kotlin):
class ExamplePlugin : JavaPlugin ( ), Listener {
    override fun onEnable ( ) {
        this. server. pluginManager. registerEvents ( this, this )
    }

    @EventHandler
    private fun onVanish (event : PlayerVanishEvent ) {
        val vanishedPlayers = AdvancedVanishAPI. vanishedPlayers
            . map (Bukkit ::getPlayer )
            . joinToString ( ", ", transform = Player ::getName )

        this. logger. log (Level. INFO, "${event.player.name} has entered vanish." )
        this. logger. log (Level. INFO, "Current vanished players: ${vanishedPlayers}." )
    }

    @EventHandler
    private fun onUnVanish (event : PrePlayerUnVanishEvent ) {
        event. isCancelled = true // Don't let players unvanish
    }
}

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

AdvancedVanish is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 4,946 times (via Spigot). Download it and open it directly in the game.

Explore more