Skip to content

feat: add simulated players to the plugin api - #24

Merged
NaySurGithub merged 1 commit into
mainfrom
feat/simulated-players
Nov 15, 2026
Merged

NaySurGithub merged 1 commit into
mainfrom
feat/simulated-players

Conversation

@NaySurGithub

@NaySurGithub NaySurGithub commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What

Simulated players for plugins, in every language of the API:

  • serverSpawnSimulatedPlayer(name, level, position, yaw, gameMode) / Server::spawnSimulatedPlayer: a player the server plays, as the game's simulated players. It joins with the usual message, shows in the player list and in the world, and stays until removed. Null / empty when the name or place is refused.
  • playerIsSimulated / Player::isSimulated
  • playerRemoveSimulated / Player::removeSimulated: leaves as a player who disconnects; false for any other player.

C ABI (falcon_api.h, three entries at the end of the table), C++ (Server.hpp, Player.hpp), Java (Server, Player) and Wasm (falcon.wit). README updated with an example.

Why

To bring in players from a plugin, for videos and load tests (a /bots command), without a GameTest structure on the map.

Server side

Falcon-MC/Falcon#459 pins this commit and implements the three entries.

Checks

The C++ headers build with -Wall against a call to each new function. Java and Wasm bindings follow the existing generated ones; CI builds them.

@NaySurGithub
NaySurGithub merged commit bdd2fc1 into main Nov 15, 2026
7 of 10 checks passed
@NaySurGithub
NaySurGithub deleted the feat/simulated-players branch November 15, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant