FakePlayer-PNX
Spawn and control fake players on PowerNukkitX 3.0.0.
Inspired by Muqsit/FakePlayer for PocketMine-MP.
Installation
PowerNukkitX 3.0.0 and Java 21 are required.
When launching the PNX JAR directly, keep its Java 21 module-opening option:
--add-opens=java.base/java.lang=ALL-UNNAMED.
Place FakePlayer-PNX.jar in your server's plugins/ folder and restart.
On first run, a players.json file is created in the plugin data folder. Add entries to spawn fake players automatically at startup.
players.json
{
"uuid-v4-string": {
"xuid": "required",
"gamertag": "required",
"behaviours": {
"fakeplayerpnx:pvp": {},
"fakeplayerpnx:auto_equip_armor": {}
}
}
}
Commands
| Command | Description |
|---|---|
/fp list | List all online fake players |
/fp tpall | Teleport all fake players to your position |
/fp chat <name> <message> | Make a fake player send a chat message |
/fp interact <name> | Make a fake player interact with the block they are looking at |
Permission: fakeplayerpnx.command (default: op)
Built-in Behaviours
fakeplayerpnx:pvp
Makes the fake player hunt and attack the nearest living entity (except creative-mode players).
| Config key | Default | Description |
|---|---|---|
reach_distance | 4.0 | Attack reach in blocks |
pvp_idle_time | 500 | Ticks without movement before teleporting back to spawn |
fakeplayerpnx:auto_equip_armor
Automatically equips any armor piece the fake player picks up.