Install the server plugin¶
The plugin is optional: the client mod works on any server. Install it where you want the dev-server tools, the world tools or tools other plugins publish.
- Put
foreman-server-1.0.0.jarinplugins/. For the world tools, add FastAsyncWorldEdit too: without it the plugin has the dev-server tools and other plugins' tools, and none that edit the world (the log says so at start). - Start the server. The log shows the MCP address,
http://127.0.0.1:25599/mcpby default; other MCP clients send the token Foreman made inplugins/Foreman/mcp-token.txt. - Join with the client mod. Players with
foreman.client(ops by default) are connected to the server's tools.
Then read Setup and configuration to let players on other machines connect, and Permissions and tokens for who can use what.
Warning
The world tools edit the world, and the dev-server tools run commands as the console. Give foreman.client and
foreman.admin only to people you trust with that, and keep the MCP server on localhost unless you need more.