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
Create the Paper 26.2 project and plugin entry point.
Implement packet-spawned fake players, persistence, commands, and tick-driven behavior.
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.
Add a velocity plugin to show fake player count on outside of the server
Add a separately buildable Velocity plugin module.
Publish the Paper fake count to a small file and let Velocity read its configured path.
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.
How i download .jar file?
Click Compile in the top bar. On a phone, tap ⋮ → Compile Project.
In the window, click Compile.
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.
The compilation failed with this error:
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.
Replace the unsupported Velocity ping builder call with the documented 3.4 API.
Correct the NMS player entity constant and resolve the tab-name type against the actual 26.2 source.
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.
Where i put this plugin
Install the two jars in different places:
Paper jar → the backend server’s
pluginsfolder.Velocity jar → the Velocity proxy’s
pluginsfolder.
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.
Same jar?
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.
But that give me only 1 jar
Make the root jar task also build the Velocity jar.
Put both jars in the root
build/libsfolder 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.
The compilation failed with this error:
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.
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 assigninglistName.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.
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();
}
}
}