Add a Server
- Command:
/minecraft add [servername] [key] - Description: Link a new Minecraft server to your Discord server using the provided key.
Broadcast a Message
- Command:
/minecraft broadcast [servername] [key] - Description: Broadcast a message to all players on the specified Minecraft server.
Execute Console Command
- Command:
/minecraft console [servername] [command] - Description: Run a console command directly on the Minecraft server.
List Servers
- Command:
/minecraft list - Description: Show all Minecraft servers currently linked to the Discord server.
List Players
- Command:
/minecraft players [servername] - Description: View a list of all online players on the specified server.
Remove a Server
- Command:
/minecraft remove [servername] - Description: Unlink a Minecraft server from the Discord server.
Server Status
- Command:
/minecraft status [servername] - Description: Check the current online/offline status of a linked server.
Custom Actions
- Command:
/minecraft customaction [servername] [action] [parameter] - Description: Execute a custom action on the server.
Custom actions are defined by the server owner in the customactions configuration file. AdmiBot provides this feature to execute server commands with a placeholder parameter {param}. You can create any actions that your server requires.
-
Example Custom Actions (provided as guidance):
heal→effect clear {param}(clears effects from the specified player)feed→effect give {param} minecraft:saturation 5 1 true(gives the player saturation effect)broadcastcustom→say [Custom] {param}(broadcasts a message to all players)
-
Usage Example:
/minecraft customaction MyServer heal Player123→ runs the actionhealonPlayer123.
Note: Users can define their own actions in actions.yml. The examples above are just templates; the actual actions depend on your server configuration. Always ensure the parameter is valid for the command being executed.