darktenek

Create a Minecraft Paper/Spigot plugin with an /incognito command.

When a player runs /incognito:

  • Their nickname should change to TR1X + 3 random uppercase letters (example: TR1XABC).
  • Their skin should change to a black/dark skin (use a default dark/black Minecraft skin).
  • The change should apply instantly for all players on the server.

When the player runs /incognito again:

  • It should toggle OFF.
  • The player’s original nickname and original skin should be restored.

Requirements:

  • The command should work as a toggle (on/off).
  • Store the player’s original name and skin so they can be restored.
  • Work on Minecraft Paper/Spigot 1.20+.
  • Compile the plugin and provide a ready-to-use .jar file.

Name: RESTCODE-INCOGNITO Version: 1.1,

Thank You.

Kodari AI
KodariMar 12 at 7:56 pm 14,565 (v2)

I’ll create the RESTCODE-INCOGNITO plugin with a toggleable /incognito command that changes nicknames and skins.

RestcodeIncognito
A Minecraft plugin that allows players to toggle incognito mode with /incognito command. When enabled, players get a randomized TR1X name and a dark skin. The plugin handles nickname and skin changes instantly across all online players, storing original data for seamless restoration when toggled off. Features include automatic name generation, skin texture management, and proper player refresh mechanics for Paper/Spigot 1.20+.

Now I’ll create the complete incognito plugin:

Plugin created successfully! The RESTCODE-INCOGNITO plugin includes:

Features:

  • /incognito command toggles incognito mode on/off

  • Generates random TR1X + 3 letters names (e.g., TR1XABC, TR1XQWP)

  • Applies a dark/black skin texture when enabled

  • Stores original name and skin for restoration

  • Instant visual updates for all online players

  • Auto-restores all players on plugin disable

Technical Implementation:

  • Uses Paper’s PlayerProfile API for skin management

  • Hide/show player mechanism for instant visual refresh

  • Lombok for clean data classes

  • Proper UUID-based player tracking

  • Thread-safe player data storage

The plugin is ready to compile with ./gradlew build and will generate a JAR file in build/libs/ directory that works on Paper/Spigot 1.20+.

darktenek

can you make me .jar to install right now?

Kodari AI
KodariMar 12 at 7:57 pm 3,125 (v2)

I cannot directly create a compiled .jar file for you - I can only write and modify the source code files. However, I can help you build one!

To create the .jar file from this project, you need to:

On Windows:

Shell
gradlew.bat build

On Mac/Linux:

Shell
./gradlew build

The .jar file will be created in: build/libs/RestcodeIncognito-1.0.jar


If you don’t have the project set up yet, I can create all the necessary files for you right now, and then you can build it yourself.

Would you like me to:

  1. Review/fix the existing code in the project (if there are any issues)

  2. Create a complete new plugin from scratch (if this is incomplete)

  3. Help troubleshoot if the build is failing

Let me know what you need and I’ll make sure all the code is ready to compile!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 284
src/main/java/com/restcode/incognito/RestcodeIncognito.java
package com.restcode.incognito;

import com.restcode.incognito.command.IncognitoCommand;
import com.restcode.incognito.manager.IncognitoManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class RestcodeIncognito extends JavaPlugin {
    
    private IncognitoManager incognitoManager;
    
    @Override
    public void onEnable() {
        this.incognitoManager = new IncognitoManager(this);
        
        this.getCommand("incognito").setExecutor(new IncognitoCommand(this));
        
        this.getLogger().info("RestcodeIncognito v1.1 enabled!");
    }
    
    @Override
    public void onDisable() {
        if (this.incognitoManager != null) {
            this.incognitoManager.disableAll();
        }
        this.getLogger().info("RestcodeIncognito v1.1 disabled!");
    }
}