kyyonlyp

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.

Kodari AI
KodariAug 2 at 12:52 am 2
Lavesta
Lavesta is a cinematic vanish system for Paper 1.21 roleplay and administration servers. It enables administrators to disappear into Spectator mode with synchronized visibility control, TAB removal, invisibility, collision and sound suppression, dramatic particle animations, titles, action bars, and supernatural nearby-player notifications. The plugin restores player state safely, handles reconnects and shutdowns, prevents duplicate activation or deactivation, supports configurable effects and messages, and is optimized for hundreds of concurrent players.
  1. Create the Maven project and Paper plugin metadata.

  2. Implement configuration, messaging, commands, state management, visibility, effects, notifications, and listeners.

  3. Add documentation and production defaults.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
README.md
Code
16 911
src/main/java/com/lavesta/LavestaPlugin.java
package com.lavesta;

import com.lavesta.command.CommandManager;
import com.lavesta.config.ConfigManager;
import com.lavesta.listener.ListenerManager;
import com.lavesta.manager.*;
import org.bukkit.plugin.java.JavaPlugin;

public class LavestaPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private VisibilityManager visibilityManager;
    private ParticleManager particleManager;
    private SoundManager soundManager;
    private NotificationManager notificationManager;
    private LavestaManager lavestaManager;

    @Override
    public void onEnable() {
        // Initialize managers
        this.configManager = new ConfigManager(this);
        this.visibilityManager = new VisibilityManager(this, configManager);
        this.particleManager = new ParticleManager(this, configManager);
        this.soundManager = new SoundManager(configManager);
        this.notificationManager = new NotificationManager(this, configManager, soundManager, particleManager);
        this.lavestaManager = new LavestaManager(this, configManager, visibilityManager, particleManager, soundManager, notificationManager);

        // Register command
        CommandManager commandManager = new CommandManager(lavestaManager, configManager);
        getCommand("lavesta").setExecutor(commandManager);
        getCommand("lavesta").setTabCompleter(commandManager);

        // Register listeners
        ListenerManager listenerManager = new ListenerManager(lavestaManager);
        getServer().getPluginManager().registerEvents(listenerManager, this);

        getLogger().info("Lavesta v" + getDescription().getVersion() + " has been enabled.");
    }

    @Override
    public void onDisable() {
        if (lavestaManager != null) {
            lavestaManager.shutdownAll();
        }
        getLogger().info("Lavesta has been disabled.");
    }
}