servertap-io / servertap

ServerTap is a REST API for Bukkit/Spigot/Paper Minecraft servers
https://servertap.io
MIT License
226 stars 57 forks source link

I'm use 'POST /v1/server/exec' and some command is dont have Response #231

Open Jadlokin-Scarlet opened 1 year ago

Jadlokin-Scarlet commented 1 year ago

image curl -X 'POST' \ 'http://1.1.1.1:1111/v1/server/exec' \ -H 'accept: */*' \ -H 'key: mykey' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'command=execute%20if%20block%2053%2062%20-14%20minecraft%3Astone&time='

I expect an output similar to '[Previous output: true]' But there's nothing

phybros commented 1 year ago

I think this is a case of that command not using CommandSender. If you try -d 'command=kshdjbfkjshdfg&time= instead, do you get this output?

Unknown command. Type "/help" for help.

If you can verify that, that will at least show that the plugin is working.

srmullaney commented 1 year ago

I've seen this issue using LuckPerms. Its really frustrating. Might be worth checking to see if they use CommandSender or not.

Jadlokin-Scarlet commented 1 year ago

The command is: execute if block 53 62 -14 minecraft:stone. It is a native command in Minecraft. Is there any way to make it usable and return results in "/v1/server/exec"