Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-w is it actually seconds? #76

Open
thethrax opened this issue May 3, 2021 · 1 comment
Open

-w is it actually seconds? #76

thethrax opened this issue May 3, 2021 · 1 comment

Comments

@thethrax
Copy link

thethrax commented May 3, 2021

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

@Tiiffi
Copy link
Owner

Tiiffi commented Dec 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants