When I try to send a command via StarNet (without GUI), he return an error in all case:
RETURN: [SERVER, END; ERROR: command not regognize (use /chat to broadcast), 0]
When I try to send a command via StarNet (without GUI), he return an error in all case:
RETURN: [SERVER, END; ERROR: command not regognize (use /chat to broadcast), 0]
I have test all that cases:
On WINDOWS
bucth@Thommy MINGW64 /c/wamp64/www/asguard/resources (master)
$ java -jar StarNet.jar "play.asguard-serv.com:27050" "myPassword" "server_message_broadcast plain test"
RETURN: [SERVER, END; ERROR: command not regognize (use /chat to broadcast), 0]
bucth@Thommy MINGW64 /c/wamp64/www/asguard/resources (master)
$ java -jar StarNet.jar
usage: <host:port> <password> <commandParam> <commandParam> ...
bucth@Thommy MINGW64 /c/wamp64/www/asguard/resources (master)
$ java -jar StarNet.jar "play.asguard-serv.com:27050" "myPassword" "server_message_broadcast" "plain" "test"
RETURN: [SERVER, END; ERROR: command not regognize (use /chat to broadcast), 0]
bucth@Thommy MINGW64 /c/wamp64/www/asguard/resources (master)
$ java -jar StarNet.jar "play.asguard-serv.com:27050" "myPassword" "/server_message_broadcast plain test"
RETURN: [SERVER, END; ERROR: command not regognize (use /chat to broadcast), 0]
bucth@Thommy MINGW64 /c/wamp64/www/asguard/resources (master)
$ java -jar StarNet.jar "play.asguard-serv.com:27050" "myPassword" "/server_message_broadcast" "plain" "test"
RETURN: [SERVER, END; ERROR: command not regognize (use /chat to broadcast), 0] (edited)
On LINUX
orion@locky:/var/www/html/asguard/www/resources$ java -jar StarNet.jar play.asguard-serv.com:27050 myPassword /server_message_broadcast plain test test test
RETURN: [SERVER, Admin command failed: Error packing parameters, 0]
RETURN: [SERVER, END; Admin command execution ended, 0]
orion@locky:/var/www/html/asguard/www/resources$ java -jar StarNet.jar "play.asguard-serv.com:27050" "myPassword" "/server_message_broadcast plain test test test"
RETURN: [SERVER, Admin command failed: Error packing parameters, 0]
RETURN: [SERVER, END; Admin command execution ended, 0]
orion@locky:/var/www/html/asguard/www/resources$ java -jar StarNet.jar "play.asguard-serv.com:27050" "myPassword" "/server_message_broadcast plain test"
RETURN: [SERVER, END; Admin command execution ended, 0]
On linux, it's okay with only one paramCmd.
With and without " "
<replace this line with the file content>
<replace this line with the file content>
On WINDOWS:
bucth@Thommy MINGW64 /c/wamp64/www/asguard/resources (master)
$ java -d32 -version
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
On LINUX
orion@locky:/var/www/html/asguard/www/resources$ java -d32 -version
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
On WINDOW
bucth@Thommy MINGW64 /c/wamp64/www/asguard/resources (master)
$ java -d64 -version
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
On LINUX
orion@locky:/var/www/html/asguard/www/resources$ java -d64 -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2~bpo8+1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
Checked the behaviour and could not see a problem, possibly a slight oversight?
executed:
java -jar StarNet.jar play.star-made.org:4242 mypassword "/server_message_broadcast plain \"test 123sldkfjldskj\""
and it worked properly.
Looks like you may have missed the / before server_message_broadcast to work.
Its also sometimes a bit tricky to get the right 'escape sequence' to compress the text in one argument.
So, I assume this is fixed already, right?
Yes, with double quote (" ") only for the "command" param, and the escape sequence :)
Thanks and Sorry for forgetting to report it.