Closed Kehino closed 3 years ago
Thanks for the report @Kehino, if I was to guess this is because the regex no longer matches for this version of minecraft. You are able to override this by updating your config with the following:
const server = new ScriptServer({
core: {
jar: 'minecraft_server.1.16.4.jar',
args: ['-Xmx2G'],
rcon: {
port: '25575',
password: '0000'
},
flavorSpecific: {
default: {
rconRunning: /^\[[\d:]{8}\] \[RCON Listener #1\/INFO\]: RCON running/i,
},
},
},
command: {
prefix: '~'
}
});
If you don't understand regex, I'd be happy to get you a working one if you would post your server startup logs.
Sorry for the delayed response!
Thanks @garrettjoecox !
I managed to update my regex. The log extract and the regex are below for reference:
[22:45:50] [Server thread/INFO]: Starting minecraft server version 1.16.4 [22:45:50] [Server thread/INFO]: Loading properties [22:45:50] [Server thread/INFO]: Default game type: SURVIVAL [22:45:50] [Server thread/INFO]: Generating keypair [22:45:50] [Server thread/INFO]: Starting Minecraft server on 127.0.0.1:25565 [22:45:50] [Server thread/INFO]: Using epoll channel type [22:45:51] [Server thread/INFO]: Preparing level "world" [22:45:51] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld [22:45:53] [Server thread/INFO]: Preparing spawn area: 0% ... [22:45:57] [Worker-Main-6/INFO]: Preparing spawn area: 99% [22:45:57] [Server thread/INFO]: Time elapsed: 6510 ms
[22:45:57] [Server thread/INFO]: Starting remote control listener [22:45:57] [Server thread/INFO]: Thread RCON Listener started [22:45:57] [Server thread/INFO]: RCON running on 127.0.0.1:25575 [22:45:57] [RCON Listener #1/INFO]: Thread RCON Client /127.0.0.1 started
const server = new ScriptServer({
core: {
jar: 'minecraft_server.1.16.4.jar',
args: ['-Xmx2G'],
rcon: {
port: '25575',
password: '0000'
},
flavorSpecific: {
default: {
rconRunning: /^\[[\d:]{8}\] \[Server thread\/INFO\]: RCON running/i,
},
},
},
command: {
prefix: '~'
}
});
Merry Christmas and happy New Year!
Hi,
I activated the RCON Listener for the server, it starts correctly when I launch the server through the wrapper or even with the
java ...
command. However, as mentionned in the closed errors, the lineconnection from localhost
never appears, neither at startup nor when I trigger myserver.send
s.I managed to test the simple-rcon tool with their example code below, which returns the following; I'd say it means that the server is properly setup:
(The disconnection sometimes fails with ECONNRESET)
And in that case, the Minecraft server returns:
The
server.js
file is below, I think I followed the README s; the feedbacks "Command was fired!" appear in the server log: