servertap icon indicating copy to clipboard operation
servertap copied to clipboard

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

Open Jadlokin-Scarlet opened this issue 2 years ago • 3 comments

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

Jadlokin-Scarlet avatar Jun 20 '23 16:06 Jadlokin-Scarlet

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.

phybros avatar Jul 14 '23 17:07 phybros

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

DeathTrooperr avatar Jul 21 '23 01:07 DeathTrooperr

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"

Jadlokin-Scarlet avatar Jul 21 '23 05:07 Jadlokin-Scarlet