Create a premium Minecraft Paper plugin called Lavesta for Paper 1.21 using Java 21 and Maven. The plugin must be production-ready, highly optimized, exploit-safe, and follow modern Paper API practices. Lavesta is a cinematic vanish system designed for administrators and roleplay servers.
COMMANDS
/lavesta on /lavesta off /lavesta reload
PERMISSIONS
lavesta.use
------------------------------------------------------------
LAVESTA ON
When a player executes /lavesta on, enable Lavesta Mode.
The plugin should:
- Change the player's gamemode to Spectator.
- Save the player's previous gamemode.
- Hide the player from every online player using Paper's hidePlayer() API.
- Remove the player from the TAB list.
- Apply invisibility as an additional safety layer.
- Disable collisions.
- Make the player silent.
- Prevent double activation.
Visual Effects:
Spawn dark particles around the player for approximately 2 seconds.
Default particles:
- reverse_portal
- soul
- ash
- smoke
- large_smoke
The particles should appear in multiple waves to create a smooth disappearing animation.
Play sound:
entity.wither.death
Action Bar:
Lavesta Enabled
Optional Title:
Title:
Lavesta
Subtitle:
You Vanished.
------------------------------------------------------------
NEARBY PLAYER NOTIFICATION
Only players inside a configurable radius (default 30 blocks) should receive a notification.
Effects:
Apply Darkness for 1 second.
Display:
Title: &4Lavesta
Subtitle:
Tidak Diradiusmu..
Play:
entity.wither.death
Spawn dark particles at the vanished player's last location.
Players outside the radius must not receive any notification.
------------------------------------------------------------
LAVESTA OFF
When the player executes /lavesta off, disable Lavesta Mode.
The plugin should:
- Restore the saved gamemode (or Survival if unavailable).
- Show the player to every online player.
- Return the player to the TAB list.
- Remove invisibility.
- Restore collisions.
- Restore sounds.
- Restore every state modified by Lavesta.
- Prevent double deactivation.
Visual Effects:
Spawn dark particles around the player while materializing.
Default particles:
- reverse_portal
- soul
- smoke
- enchant
Play:
block.end_portal.spawn
Action Bar:
Lavesta Disabled
Optional Title:
Title:
Lavesta
Subtitle:
You Returned.
------------------------------------------------------------
NEARBY PLAYER NOTIFICATION
Only players within the configurable radius (default 30 blocks) receive:
Darkness for 1 second.
Title:
&4Lavesta
Subtitle:
Sedang Diradiusmu..
Play:
block.end_portal.spawn
Spawn dark particles around the player's reappearance location.
Players outside the radius should not receive any effects.
------------------------------------------------------------
CONFIGURATION
Generate config.yml containing:
Enable Action Bar
Enable Titles
Enable Sounds
Enable Particles
Particle Duration
Particle Count
Particle Radius
Notification Radius
Darkness Duration
Hide From Tab
Hide Player
Gamemode On
Restore Previous Gamemode
Sound Volume
Sound Pitch
Messages
------------------------------------------------------------
SECURITY
Prevent:
- Double activation
- Double deactivation
- Visibility exploits
- TAB exploits
- Disconnect issues
- Gamemode desynchronization
- State corruption
If a player logs out while Lavesta Mode is enabled, automatically restore the player to a normal state on the next login unless disabled in the config.
------------------------------------------------------------
PERFORMANCE
Support hundreds of players simultaneously.
Avoid unnecessary repeating tasks.
Clean up every scheduled task after particle animations finish.
Use efficient Paper API methods.
------------------------------------------------------------
PROJECT
Generate a complete IntelliJ IDEA / VS Code Maven project including:
plugin.yml
config.yml
messages.yml
pom.xml
README.md
All Java source files.
Use a clean OOP architecture with:
Main
CommandManager
LavestaManager
VisibilityManager
ParticleManager
SoundManager
NotificationManager
ListenerManager
ConfigManager
Utilities
------------------------------------------------------------
The final plugin should feel premium and cinematic. The disappearance animation should resemble a character fading into darkness, while the reappearance animation should feel like emerging from the void. Nearby players should experience a mysterious presence through temporary darkness, dramatic titles, immersive sounds, and dark particle effects, making Lavesta feel supernatural and perfect for roleplay servers.