Pʀɪᴛᴏᴍ Bɪsᴡᴀs

A Paper 26.2 plugin that creates ServerPlayer-based fake-player NPCs via a /fp command tree (spawn, remove, list, goto, sleep, wake, attack, stop, lookat). Each fake player gets a stable UUID derived from its name, appears in the tab list via ClientboundPlayerInfoUpdatePacket, and is spawned with ClientboundAddEntityPacket. A BukkitRunnable ticks them on the main thread, using NMS pathfinding goals for random stroll, look-at-nearest-player, and melee attacks. Sleep/wake send bed-occupancy and pose packets. PvP swings and applies damage to faced entities in range. Fake players persist across restarts in plugins/PlayerSpoofer/fakes.yml storing name, display name, location, and AI mode. plugin.yml registers /fp and the playerspoofer.admin permission. Velocity proxy-side spoofing inflates real player counts for 1.18-26.2 support

Kodari AI
KodariOct 6 at 4:30 pm 3
FakePlayerSpoofer
A Paper 26.2 plugin that creates ServerPlayer-based fake-player NPCs via a /fp command tree (spawn, remove, list, goto, sleep, wake, attack, stop, lookat). Each fake player gets a stable UUID derived from its name, appears in the tab list via ClientboundPlayerInfoUpdatePacket, and is spawned with ClientboundAddEntityPacket. A BukkitRunnable ticks them on the main thread, using NMS pathfinding goals for random stroll, look-at-nearest-player, and melee attacks. Sleep/wake send bed-occupancy and pose packets. PvP swings and applies damage to faced entities in range. Fake players persist across restarts in plugins/PlayerSpoofer/fakes.yml storing name, display name, location, and AI mode. plugin.yml registers /fp and the playerspoofer.admin permission. Velocity proxy-side spoofing inflates real player counts for 1.18-26.2 support.
  1. Create the Paper 26.2 project and plugin entry point.

  2. Implement packet-spawned fake players, persistence, commands, and tick-driven behavior.

  3. Add Paper server-list count inflation; proxy-side Velocity counts require a separate Velocity plugin and cannot be changed by a Paper-only plugin.

Created the Paper 26.2 plugin with /fp spawn, remove, list, goto, sleep, wake, attack, stop, and lookat. Fake players use stable name-derived UUIDs, appear in the tab list, and persist their locations and AI modes in plugins/PlayerSpoofer/fakes.yml.

Two limits: ServerPlayer has no Mob goal selector or pathfinding, so the behaviors are tick-driven simulations rather than NMS goals. A Paper plugin also can’t spoof Velocity’s proxy-side player count; that requires a separate Velocity plugin. Sleep/wake updates the fake player’s pose and sleep metadata, but does not mark a bed block occupied.

Pʀɪᴛᴏᴍ Bɪsᴡᴀs

Add a velocity plugin to show fake player count on outside of the server

Kodari AI
KodariOct 6 at 4:36 pm 1
  1. Add a separately buildable Velocity plugin module.

  2. Publish the Paper fake count to a small file and let Velocity read its configured path.

  3. Adjust public server-list ping counts; this file bridge requires both processes to access the same filesystem.

Added a separate Velocity plugin module. It intercepts public server-list pings and adds the Paper fake-player count to the advertised online count.

The Paper plugin writes the current count to plugins/PlayerSpoofer/fake-count.txt. Set fake-count-file in the Velocity plugin’s config.properties to that file’s path. Both processes need filesystem access to it; place the Velocity jar in the proxy’s plugins directory.

Pʀɪᴛᴏᴍ Bɪsᴡᴀs

How i download .jar file?

Kodari AI
KodariOct 6 at 4:37 pm 1
  1. Click Compile in the top bar. On a phone, tap ⋮ → Compile Project.

  2. In the window, click Compile.

  3. When the build succeeds, click Download on the build or Download {name}.jar in the chat. Download the Paper and Velocity jars if both are listed; install each on its respective server/proxy.

Pʀɪᴛᴏᴍ Bɪsᴡᴀs

The compilation failed with this error:

code
Compilation failed with 3 error(s):

ERROR in src/main/java/velocity/src/main/java/dev/kodari/playerspoofer/velocity/PlayerSpooferVelocityPlugin.java at line 45: cannot find symbol
                .players(new ServerPing.Players(
                ^
  symbol: method players(Players)
  location: class Builder

ERROR in src/main/java/dev/kodari/playerspoofer/FakePlayerManager.java at line 202: incompatible types: TextComponent cannot be converted to Component
        handle.listName = Component.text(displayName);
                                        ^

ERROR in src/main/java/dev/kodari/playerspoofer/FakePlayerManager.java at line 274: cannot find symbol
                EntityType.PLAYER,
                          ^
  symbol: variable PLAYER
  location: class EntityType


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - players(Players)
ACTION: Check method names and signatures

TYPE MISMATCHES:
  - incompatible types: TextComponent cannot be converted to Component
ACTION: Fix variable types or casting

FILES TO INVESTIGATE:
  - src/main/java/velocity/src/main/java/dev/kodari/playerspoofer/velocity/PlayerSpooferVelocityPlugin.java
  - src/main/java/dev/kodari/playerspoofer/FakePlayerManager.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariOct 6 at 4:41 pm 1
  1. Replace the unsupported Velocity ping builder call with the documented 3.4 API.

  2. Correct the NMS player entity constant and resolve the tab-name type against the actual 26.2 source.

  3. Patch only the reported compile failures.

Fixed all three compile errors: the Velocity ping now uses onlinePlayers(...), the fake-player tab name is converted to the NMS component type, and the player entity constant is EntityTypes.PLAYER.

Click Compile to create fresh jars. Download the Paper and Velocity jars from the successful build.

Pʀɪᴛᴏᴍ Bɪsᴡᴀs

Where i put this plugin

Kodari AI
KodariOct 6 at 4:47 pm 1

Install the two jars in different places:

  • Paper jar → the backend server’s plugins folder.

  • Velocity jar → the Velocity proxy’s plugins folder.

Start both so their config/data files are created, then set the Velocity plugin’s fake-count-file to the Paper plugin’s plugins/PlayerSpoofer/fake-count.txt path. The proxy must be able to access that file; if Paper and Velocity run on separate machines, they’ll need a shared filesystem.

Pʀɪᴛᴏᴍ Bɪsᴡᴀs

Same jar?

Kodari AI
KodariOct 6 at 4:47 pm 1

No—use two separate jars: the Paper jar goes in the backend server’s plugins folder, and the Velocity jar goes in the proxy’s plugins folder.

Pʀɪᴛᴏᴍ Bɪsᴡᴀs

But that give me only 1 jar

Kodari AI
KodariOct 6 at 4:56 pm 1
  1. Make the root jar task also build the Velocity jar.

  2. Put both jars in the root build/libs folder with distinct names so both are available from the compile output.

Fixed the build so the root jar task also creates the Velocity jar. The two outputs should now be PlayerSpoofer-1.0.0.jar and PlayerSpoofer-Velocity-1.0.0.jar. Click Compile again, then download each jar and install it in its corresponding plugins folder.

Pʀɪᴛᴏᴍ Bɪsᴡᴀs

The compilation failed with this error:

code
Compilation failed with 3 error(s):

ERROR in src/main/java/velocity/src/main/java/dev/kodari/playerspoofer/velocity/PlayerSpooferVelocityPlugin.java at line 45: cannot find symbol
                .players(new ServerPing.Players(
                ^
  symbol: method players(Players)
  location: class Builder

ERROR in src/main/java/dev/kodari/playerspoofer/FakePlayerManager.java at line 202: incompatible types: TextComponent cannot be converted to Component
        handle.listName = Component.text(displayName);
                                        ^

ERROR in src/main/java/dev/kodari/playerspoofer/FakePlayerManager.java at line 274: cannot find symbol
                EntityType.PLAYER,
                          ^
  symbol: variable PLAYER
  location: class EntityType


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - players(Players)
ACTION: Check method names and signatures

TYPE MISMATCHES:
  - incompatible types: TextComponent cannot be converted to Component
ACTION: Fix variable types or casting

FILES TO INVESTIGATE:
  - src/main/java/velocity/src/main/java/dev/kodari/playerspoofer/velocity/PlayerSpooferVelocityPlugin.java
  - src/main/java/dev/kodari/playerspoofer/FakePlayerManager.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariOct 6 at 5:04 pm 1

The current source already contains fixes for all three reported errors:

  • Velocity uses .onlinePlayers(...), not the unsupported .players(...).

  • The display name is converted with PaperAdventure.asVanilla(...) before assigning listName.

  • The entity constant is EntityTypes.PLAYER.

The error log appears to be from an older source snapshot, so there’s no further code change to apply. Compile the current project again to generate fresh jars.

Kodari can make mistakes. Review important code before using.
Files
src
velocity
build.gradle.kts
settings.gradle.kts
Code
9 850
src/main/java/dev/kodari/playerspoofer/PlayerSpooferPlugin.java
package dev.kodari.playerspoofer;

import org.bukkit.plugin.java.JavaPlugin;

public final class PlayerSpooferPlugin extends JavaPlugin {
    private FakePlayerManager fakePlayerManager;

    @Override
    public void onEnable() {
        fakePlayerManager = new FakePlayerManager(this);
        fakePlayerManager.load();
        fakePlayerManager.start();

        FakePlayerCommand command = new FakePlayerCommand(fakePlayerManager);
        getCommand("fp").setExecutor(command);
        getCommand("fp").setTabCompleter(command);
    }

    @Override
    public void onDisable() {
        if (fakePlayerManager != null) {
            fakePlayerManager.shutdown();
        }
    }
}