sweatyxalfie

Project: RebornNPC — Fake Player Simulation Plugin

Develop a complete, production-ready Minecraft Java plugin called RebornNPC for my Paper 1.21.11 Minecraft server, using Java 21.

The plugin should allow me to create and control configurable simulated player characters that look and behave like normal Minecraft players. They should have custom names, appear in the TAB player list, walk around the world, and occasionally send believable messages in chat.

1. Core Requirements

  • Target: Paper 1.21.11.
  • Java 21.
  • Plugin name: RebornNPC.
  • Main class: com.rebornnpc.RebornNPC.
  • Build system: Maven or Gradle.
  • Integrate with LuckPerms.
  • Provide a complete source project and compiled JAR.
  • Store NPC configuration persistently so NPCs survive server restarts.
  • Support creating as many NPCs as the server's hardware and implementation can reasonably handle.
  • Do not impose an arbitrary low NPC limit.
  • Provide configurable limits and performance safeguards to prevent server crashes.

2. NPC Management Commands

Implement these administrator commands:

  • /fakeplayer create <name> — Create a simulated player with the specified name.
  • /fakeplayer remove <name> — Remove an NPC.
  • /fakeplayer spawn <name> — Spawn an existing NPC into the world.
  • /fakeplayer despawn <name> — Remove an NPC from the world without deleting its configuration.
  • /fakeplayer list — List all configured NPCs and their status.
  • /fakeplayer tp <name> — Teleport myself to an NPC.
  • /fakeplayer move <name> — Make an NPC begin moving around.
  • /fakeplayer stop <name> — Stop an NPC's movement.
  • /fakeplayer skin <name> <skinOwner> — Set the NPC's appearance using a supported player skin.
  • /fakeplayer message <name> <message> — Make an NPC send a chat message.
  • /fakeplayer behavior <name> <behavior> — Change its behaviour.
  • /fakeplayer reload — Reload configuration.
  • /fakeplayer removeall — Remove all simulated players after a confirmation step.
  • /fakeplayer limit <amount> — Configure the maximum NPC count.

Add tab completion, permission checks and useful error messages. Restrict management commands to authorised administrators.

3. LuckPerms Integration

All fake players should display the MEMBER rank.

  • Use LuckPerms as the source of rank and prefix information.
  • Integrate with the existing MEMBER group.
  • Show the correct MEMBER prefix and colour in the TAB list.
  • Ensure fake players cannot inherit administrator permissions or execute privileged commands.
  • Avoid creating real LuckPerms user accounts unnecessarily.
  • If a fake player's TAB prefix cannot be obtained through the normal LuckPerms user API, provide a configurable fallback prefix and integrate with the server's TAB display system where required.

Example display:

[MEMBER] Steve123

Use the server's configured MEMBER prefix rather than hardcoding a different rank.

4. TAB Player List

NPCs must appear in the Minecraft TAB player list with:

  • Their configured names.
  • The MEMBER rank prefix.
  • Correct name formatting and colours.
  • Optional configurable skin textures.
  • Configurable sorting and display order.
  • Persistent display while they are spawned.

They should be distinguishable internally from real players so staff tools and moderation systems can identify them.

Technical requirement: Investigate the correct implementation for Paper 1.21.11. Bukkit NPC entities are not automatically real player connections, so use an appropriate supported packet-based implementation or another compatible technique. If ProtocolLib is required, declare and document it as a dependency. Do not pretend that an ordinary ArmorStand or invisible entity is a real player in TAB.

5. Movement and Behaviour

NPCs should appear active instead of standing still permanently.

Implement configurable behaviours:

  • Randomly walk around a configured area.
  • Wander within a specified radius.
  • Stop and look around occasionally.
  • Turn toward nearby players.
  • Walk toward designated locations.
  • Stand near spawn.
  • Occasionally jump.
  • Avoid walking into lava, voids, dangerous drops and solid blocks.
  • Stop moving when despawned.
  • Return to their configured location after a restart if enabled.

NPCs should move naturally, with configurable speed, movement frequency and idle duration.

Do not run an expensive pathfinding task for every NPC every tick. Use efficient scheduling, cached destinations and configurable update intervals.

6. Simulated Chat

NPCs should occasionally send believable messages in public chat.

Examples:

  • Anyone know where I can get diamonds?
  • just started playing
  • where is spawn?
  • anyone selling iron?
  • is anyone online?
  • how do i use /rtp
  • anyone wanna trade?

Implement:

  • Configurable message pools.
  • Different message pools for different NPC personalities.
  • Randomised message intervals.
  • Configurable minimum and maximum delays.
  • Per-NPC chat enable/disable settings.
  • Optional messages triggered by nearby players.
  • Optional greetings when a player comes nearby.
  • Configurable chance for an NPC to remain silent.
  • Protection against repeating the same messages too frequently.
  • Correct chat formatting using the server's normal chat format.

Never flood chat. Add global and per-NPC cooldowns, sensible defaults and an administrator-controlled chat toggle.

For safety, use clearly documented simulation logic and do not allow NPCs to execute arbitrary console commands through their chat configuration.

7. NPC Personalities

Each NPC should have a configurable personality, such as:

  • NEW_PLAYER — Asks basic questions and explores.
  • TRADER — Talks about buying and selling items.
  • SOCIAL — Occasionally greets players.
  • EXPLORER — Wanders around the world.
  • IDLE — Stays mostly stationary and occasionally chats.
  • CUSTOM — Uses administrator-defined messages and behaviours.

Allow each NPC to have its own world, location, movement radius, skin, personality and chat settings.

8. Configuration

Create a documented config.yml with settings for:

  • Maximum NPC count.
  • Default world and spawn location.
  • Default MEMBER prefix.
  • Movement enable/disable.
  • Chat enable/disable.
  • Minimum and maximum chat intervals.
  • Per-NPC cooldowns.
  • Movement speed.
  • Movement radius.
  • Skin settings.
  • NPC persistence.
  • TAB display.
  • Debug logging.
  • Performance safeguards.

Store individual NPC settings in a separate persistent data file or database.

9. Important Technical Distinction

There are two possible implementations:

Option A: Simulated NPCs

Use packet-based player-list entries and simulated entities. They can be shown in TAB and may be able to move and display chat-like behaviour, but they will not necessarily be genuine connected Minecraft players.

Option B: Actual fake client connections

Implement actual simulated Minecraft client connections that join the server and behave like players. This is significantly more complex and may require a protocol-level implementation. These connections can trigger login events, consume server resources and interact with plugins as real players.

Choose the implementation that genuinely satisfies the requirements. Clearly document the limitations. Do not claim that packet-only NPCs are real online players or will increment the server's genuine online player count unless that has been implemented and tested.

10. Compatibility and Testing

Test against Paper 1.21.11 and Java 21.

Verify:

  • NPC creation and removal.
  • NPC persistence after restart.
  • TAB visibility.
  • MEMBER rank formatting.
  • Movement and safe navigation.
  • Chat intervals and cooldowns.
  • Multiple NPCs operating simultaneously.
  • Compatibility with LuckPerms.
  • Compatibility with the server's existing TAB plugin, if present.
  • Correct handling of despawned NPCs.
  • Server performance under increasing NPC counts.
  • No entity leaks, memory leaks or runaway scheduled tasks.

Provide the complete project, all source files, plugin.yml, configuration examples, build instructions and compiled JAR.

Do not generate pseudocode or claim features work without implementing them. Build and test the plugin incrementally, and document any limitations honestly.

Kodari AI
KodariOct 26 at 12:58 pm 1
Created RebornNPCPlugins
Delegated to RebornNPC Running
Implement the complete RebornNPC Paper plugin in this currently empty project. Target Paper 1.21.11 / Java 21; plugin name RebornNPC; exact main class com.rebornnpc.RebornNPC. Deliver real source/configuration/build files/docs, not pseudocode. Implement the requested commands, persistence, safe configurable movement, simulated chat/personality settings, LuckPerms MEMBER prefix integration, TAB entries, permissions, tab completion, remove-all confirmation, configurable limits/safeguards, reload handling, and lifecycle cleanup. Crucial implementation decision: use OPTION A, packet-based simulated NPCs, NOT fake client connections. Do not claim NPCs are real online players, trigger real Player join events, run as Bukkit Player objects, or increase the genuine online count. They should be represented by client-side player-list entries plus player-type entities sent to viewers; movement/chat are simulated by plugin logic. Do not substitute armor stands. Use an appropriate maintained packet library compatible with Paper 1.21.11 (prefer ProtocolLib); declare the required dependency clearly in plugin.yml and project documentation, and manage its external dependency declaration through the project's normal manifest mechanism. If API/library constraints make an advertised behavior impossible, document the exact limitation rather than pretending it works. Handle player joins, quits, world changes, chunk/viewer visibility, spawn/despawn, reload, and plugin disable without leaked entries/entities/tasks. Include a documented config.yml and persistent per-NPC file, sensible non-flooding chat defaults, deduplication, global/per-NPC cooldowns, personality pools, safe ground checks that avoid lava/void/solid obstruction/dangerous drops, cached destination movement at configurable intervals (no per-NPC expensive pathfinding every tick), occasional look/jump behavior, and bounded scheduling/performance safeguards. Allow each NPC its own location/world/radius/skin/personality/chat/behavior state. Validate names and all numeric/config values. `/fakeplayer removeall` must require an explicit confirmation subcommand/step. `/fakeplayer limit <amount>` changes and persists the configured cap. Use LuckPerms API to resolve the existing MEMBER group prefix without creating users; configurable fallback if unavailable. Packet name formatting should use MEMBER prefix and configured name, with tab ordering/settings where practical; document potential conflicts with other TAB plugins instead of claiming universal compatibility. Fake NPCs must never have privileged commands/permissions. Commands: `/fakeplayer create <name>`, `remove`, `spawn`, `despawn`, `list`, `tp`, `move`, `stop`, `skin <name> <skinOwner>`, `message <name> <message>`, `behavior <name> <behavior>`, `reload`, `removeall [confirm]`, and `limit <amount>`. Add admin permission and player-friendly errors/tab completion. Ensure all requested features have real implementations and use proper cleanup. Include build instructions and honest documentation that this is packet-based simulation, requires ProtocolLib/LuckPerms as applicable, and is not a real client connection. Do not write test files or claim to have built/tested the result; the workspace build verifier will be run separately after your implementation. Before coding, inspect the project scaffold (it may be empty). Finish by summarizing implementation and any unavoidable limitations.

I’ve started RebornNPC as a packet-based NPC simulation, with TAB-visible player-style entities rather than real client connections. The implementation will document that distinction and any dependency or compatibility limits.

Report from 1 project
RebornNPCCompleted
TaskImplement the complete RebornNPC Paper plugin in this currently empty project. Target Paper 1.21.11 / Java 21; plugin name RebornNPC; exact main class com.rebornnpc.RebornNPC. Deliver real source/conf...

…Implemented the RebornNPC Paper plugin with /fakeplayer commands, per-NPC YAML persistence, permissions and tab completion, configurable limits, explicit removeall confirm, LuckPerms MEMBER-prefix lookup, and ProtocolLib packet-based player-list entries and player entities.

NPC movement uses cached destinations and bounded safe-ground checks; chat has configurable personality pools, cooldowns, nearby delivery, and deduplication. Join/quit, world and chunk visibility, reload, removal, and disable cleanup are handled.

The plugin does not create real clients or Bukkit players, fire real join events, or affect the genuine online count. ProtocolLib is required; LuckPerms is optional. TAB plugins may alter or conflict with client-side entries, and runtime packet compatibility depends on using a ProtocolLib build that supports Paper 1.21.11. These limitations and setup instructions are documented in README.md.

No build or tests were run; the workspace verifier will check the project separately.

Kodari AI
KodariOct 26 at 1:13 pm 1
Compiled RebornNPCSucceeded

RebornNPC is implemented and compiled successfully for Paper 1.21.11 / Java 21.

It includes the /fakeplayer management commands, NPC persistence, configurable movement and simulated chat, LuckPerms MEMBER-prefix lookup, and ProtocolLib-based TAB entries and player-style entities. Setup instructions and limitations are documented in the project README.

Important: These are packet-based simulations, not real connected players. They do not fire genuine player join events or increase the server’s real player count. ProtocolLib is required; LuckPerms is optional. Compilation succeeded, but runtime behavior and compatibility with your server’s specific TAB setup were not verified.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code