ogkeshav69

Create a Minecraft Paper/Spigot plugin in Java (1.20+ compatible) called IdentityMask.

The plugin must allow an admin to hide all players’ identities or change all players’ names to a custom name using commands.

Use ProtocolLib if necessary for skin and packet changes.

---

PLUGIN NAME

IdentityMask

---

COMMANDS

  1. /hideplayers

When this command is executed:

• All players’ nametags above their heads must disappear. • All players’ skins must change to the default Steve skin. • In the tab list, names should be hidden or replaced with "Hidden". • In chat, join messages, death messages, advancement messages, and sleep messages, real player names must not appear.

Example behavior:

Normal: "Samar joined the game"

Hide mode: "A player joined the game"

Advancement example: "A player has made the advancement Stone Age"

Sleep example: "A player is now sleeping"

This mode must affect:

  • Chat messages
  • Join messages
  • Quit messages
  • Advancement messages
  • Death messages
  • Sleep messages
  • Tab list
  • Name tags

Hide mode must stay active until disabled.

---

  1. /changename <name>

This command changes all players' visible names to a single chosen name.

Example: "/changename Alex"

After executing:

• Every player in the server appears as Alex. • Nametags above heads show Alex. • Tab list shows Alex. • Chat messages show Alex. • Join/quit messages show Alex. • Advancement messages show Alex. • Sleep messages show Alex. • Death messages show Alex.

Example:

Real: "Samar joined the game"

Changed: "Alex joined the game"

Real: "Rohit has made the advancement Stone Age"

Changed: "Alex has made the advancement Stone Age"

This should also apply to players who join later.

---

  1. /off

This command must disable all plugin effects.

After executing:

• All players return to their real names. • All players return to their original skins. • Tab list becomes normal. • Chat messages become normal. • Join/quit/advancement/death messages become normal.

---

PERMISSIONS

identitymask.hide identitymask.changename identitymask.off

Only players with permission can use commands.

---

TECHNICAL REQUIREMENTS

• Use Java. • Compatible with Paper / Spigot servers. • Support Minecraft 1.20+. • Use ProtocolLib to change skins and GameProfile if needed. • Plugin must not crash when players join or leave. • Changes must apply instantly to all players.

---

FILES TO GENERATE

Generate full working plugin structure:

• Main plugin class • Command handler • Event listeners • Skin changer system • Name masking system • plugin.yml • config.yml

---

PLUGIN.YML REQUIREMENTS

Commands:

hideplayers changename off

Each command must include description and permission.

---

CONFIG.YML

Include configurable messages:

hide_join_message: "A player joined the game" hide_quit_message: "A player left the game" hide_advancement_message: "A player has made an advancement" hide_sleep_message: "A player is now sleeping"

---

IMPORTANT

• The plugin must work on multiplayer servers. • Must apply to every player in the server. • Must support players joining after the command is enabled. • Must not cause console errors.

Provide full Java source code and folder structure so the plugin can be compiled into a jar.

Kodari AI
KodariMar 11 at 5:09 am 13,890 (v2)

I’ll create a comprehensive IdentityMask plugin that handles player identity hiding and name changing using ProtocolLib for packet manipulation.

IdentityMask
Advanced player identity management plugin that allows administrators to hide all player identities or change visible names server-wide. Features include nametag hiding, skin changing to Steve, tab list modification, and comprehensive message filtering for chat, join/quit, advancements, deaths, and sleep messages. Uses ProtocolLib for seamless packet manipulation and supports players joining after effects are enabled.

I’ll create the complete IdentityMask plugin with ProtocolLib integration for packet manipulation.

Complete IdentityMask plugin created with ProtocolLib packet manipulation for seamless identity masking across all server features including tab list, nametags, skins, and all message types.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 539
src/main/java/com/identitymask/IdentityMask.java
package com.identitymask;

import com.identitymask.commands.ChangeNameCommand;
import com.identitymask.commands.HidePlayersCommand;
import com.identitymask.commands.OffCommand;
import com.identitymask.listeners.ChatListener;
import com.identitymask.listeners.JoinQuitListener;
import com.identitymask.managers.IdentityManager;
import com.identitymask.managers.SkinManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class IdentityMask extends JavaPlugin {
    private IdentityManager identityManager;
    private SkinManager skinManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.identityManager = new IdentityManager();
        this.skinManager = new SkinManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("IdentityMask has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (identityManager.isActive()) {
            identityManager.disable();
            skinManager.resetAllPlayers();
        }
        getLogger().info("IdentityMask has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("hideplayers").setExecutor(new HidePlayersCommand(this));
        getCommand("changename").setExecutor(new ChangeNameCommand(this));
        getCommand("off").setExecutor(new OffCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new ChatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new JoinQuitListener(this), this);
    }
    
    public String getMessage(String path) {
        return getConfig().getString("messages." + path, "").replace("&", "§");
    }
}