justweby

Make a Plugin where, I can add FakePlayers to my server. It will show the player's name and the player will continously chat and the messages should editable and normally ai generated and it will chat every 3 seconds, reply to hello, and more messages. The FakePlayers should move, talk, and show in TAB. They should automatically fetch skins. Add commands like /wfp create, connect, disconnect, rename, and skin add more if needed like nessecary. Also Make it as good as possible name it WFakePlayers

Kodari AI
KodariApr 24 at 9:38 am 19,442 (v2)

I’ll create a comprehensive fake player management plugin with realistic NPCs that chat, move, and appear in the TAB list.

WFakePlayers
Advanced fake player system that creates realistic NPCs with AI-powered chat, automatic movement, TAB list integration, and dynamic skin fetching. Fake players chat every 3 seconds with configurable or AI-generated messages, respond to player interactions, and behave like real players. Includes comprehensive commands for creation, management, and customization. Features automatic skin fetching from Mojang, multiple movement patterns, and seamless server integration.

WFakePlayers is ready! This advanced fake player system includes:

✅ Fake Player Management - Create, connect, disconnect, rename, and remove fake players
✅ TAB List Integration - Fake players appear in the player list using ProtocolLib packets
✅ AI-Powered Chat - Optional OpenAI integration with fallback to configured messages
✅ Smart Responses - Responds to “hello”, “bye”, “thanks”, “help” automatically
✅ Movement Patterns - Wander, stand, and follow modes with smooth packet-based movement
✅ Automatic Skin Fetching - Fetches skins from Mojang API by player name
✅ Persistent Storage - Fake players saved to YAML and auto-loaded on startup
✅ Full Command System - /wfp with 10 subcommands and tab completion

Commands:

  • /wfp create <name> - Create fake player at your location

  • /wfp connect <name> - Show fake player in-game

  • /wfp disconnect <name> - Hide fake player

  • /wfp remove <name> - Permanently delete

  • /wfp rename <old> <new> - Rename fake player

  • /wfp skin <fake> <player> - Apply skin from real player

  • /wfp list - View all fake players

  • /wfp move <name> <wander|stand|follow> - Change movement

  • /wfp chat <name> [enable|disable|message] - Chat control

  • /wfp reload - Reload config

Requirements: ProtocolLib (automatically detected)

justweby

Fix it pls

3 images attached
Kodari AI
KodariApr 24 at 9:50 am 7,025 (v2)

I can see the error - NoClassDefFoundError: kotlin/jvm/internal/Intrinsics. The issue is that OkHttp is a Kotlin library and requires Kotlin runtime. Let me fix this by replacing OkHttp with Java’s built-in HTTP client and removing unnecessary dependencies.

I can see the issue - OkHttp requires Kotlin runtime. Let me replace it with Java’s built-in HTTP client and fix the dependencies:


Fixed! The plugin now uses Java’s built-in HttpURLConnection instead of OkHttp, eliminating the Kotlin dependency issue. Gson is already provided by Spigot/Paper, so only XSeries needs to be included.

justweby

Make it for paper 1.21x - 26.x

Kodari can make mistakes. Review important code before using.
Files
src
.gitignore
build.gradle
manifest.kod
Code
13 1,675
src/main/java/com/wfakeplayers/WFakePlayers.java
package com.wfakeplayers;

import com.wfakeplayers.command.WFPCommand;
import com.wfakeplayers.manager.ChatManager;
import com.wfakeplayers.manager.ConfigManager;
import com.wfakeplayers.manager.FakePlayerManager;
import com.wfakeplayers.manager.MovementManager;
import com.wfakeplayers.util.SkinFetcher;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class WFakePlayers extends JavaPlugin {

    private ConfigManager configManager;
    private FakePlayerManager fakePlayerManager;
    private ChatManager chatManager;
    private MovementManager movementManager;
    private SkinFetcher skinFetcher;

    @Override
    public void onEnable() {
        if (!checkProtocolLib()) {
            getLogger().severe("ProtocolLib is required for WFakePlayers to work!");
            getLogger().severe("Download it from: https://www.spigotmc.org/resources/protocollib.1997/");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.skinFetcher = new SkinFetcher(this);
        this.fakePlayerManager = new FakePlayerManager(this);
        this.chatManager = new ChatManager(this);
        this.movementManager = new MovementManager(this);

        getCommand("wfp").setExecutor(new WFPCommand(this));

        fakePlayerManager.loadFakePlayers();
        chatManager.startChatTask();
        movementManager.startMovementTask();

        getLogger().info("WFakePlayers has been enabled!");
        getLogger().info("Loaded " + fakePlayerManager.getFakePlayers().size() + " fake players.");
    }

    @Override
    public void onDisable() {
        if (chatManager != null) {
            chatManager.stopChatTask();
        }
        if (movementManager != null) {
            movementManager.stopMovementTask();
        }
        if (fakePlayerManager != null) {
            fakePlayerManager.disconnectAll();
            fakePlayerManager.saveFakePlayers();
        }

        getLogger().info("WFakePlayers has been disabled!");
    }

    private boolean checkProtocolLib() {
        return getServer().getPluginManager().getPlugin("ProtocolLib") != null;
    }

    public void reload() {
        reloadConfig();
        configManager = new ConfigManager(this);
        fakePlayerManager.saveFakePlayers();
        fakePlayerManager.loadFakePlayers();
        
        chatManager.stopChatTask();
        movementManager.stopMovementTask();
        
        chatManager.startChatTask();
        movementManager.startMovementTask();
    }
}