mcrcon icon indicating copy to clipboard operation
mcrcon copied to clipboard

-w is it actually seconds?

Open thethrax opened this issue 4 years ago • 1 comments

Seems like it is not accurate for time? Doing more testing.

mcrcon.exe -s -H 127.0.0.1 -P 1111 -w 5 "say shutdown in 5 mins" mcrcon.exe -s -H 127.0.0.1 -P 1111 -w 240 "say shutdown in 1 min" -w 60 stop

[03May2021 03:06:49.219] [RCON Listener #1/INFO] [net.minecraft.network.rcon.RConThread/]: Thread RCON Client /127.0.0.1 started [03May2021 03:06:49.224] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: [Rcon] shutdown in 5 mins [03May2021 03:06:59.229] [RCON Client /127.0.0.1 #4/INFO] [net.minecraft.network.rcon.ClientThread/]: Thread RCON Client /127.0.0.1 shutting down [03May2021 03:06:59.237] [RCON Listener #1/INFO] [net.minecraft.network.rcon.RConThread/]: Thread RCON Client /127.0.0.1 started [03May2021 03:06:59.237] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: [Rcon] shutdown in 1 min [03May2021 03:07:14.240] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: [Rcon: Stopping the server] [03May2021 03:07:14.241] [RCON Client /127.0.0.1 #5/INFO] [net.minecraft.network.rcon.ClientThread/]: Thread RCON Client /127.0.0.1 shutting down [03May2021 03:07:14.270] [Server thread/INFO] [ipsis.woot.setup.ModSetup/]: onServerStop [03May2021 03:07:14.276] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server [03May2021 03:07:14.277] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players

thethrax avatar May 03 '21 09:05 thethrax

Hi!

Yes -w (wait) flag is in seconds.

But I can see your problem. This flag only sets fixed time between commands. For now it is impossible to change the wait time between the commands.

I think clarification is needed in the documentation. It might be a good idea to add enchanced version of this feature in future releases.

Tiiffi avatar Dec 18 '21 20:12 Tiiffi