Discord Integration Forge

Discord Integration Forge

935k Downloads

Custom mcCommands

Fliberatto opened this issue ยท 2 comments

commented

How to properly add custom commands? I'm trying to get the bot to OP someone.
I'm using the latest version in a Forge server.

commented

Here is the default json, but with an /op command added

customCommandJSON = "{"kick":{"adminOnly":true,"mcCommand":"kick","description":"Kicks a player from the server","useArgs":true,"argText":" [reason]"},"stop":{"adminOnly":true,"mcCommand":"stop","description":"Stops the server","aliases":["shutdown"],"useArgs":false},"kill":{"adminOnly":true,"mcCommand":"kill","description":"Kills a player","useArgs":true,"argText":""},"op":{"adminOnly":true,"mcCommand":"op","description":"OPs a player","useArgs":true,"argText":""}}"

commented

Thank you!