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

Make announceStopViaConsole configurable #13

Open
ChipWolf opened this issue Aug 6, 2021 · 4 comments
Open

Make announceStopViaConsole configurable #13

ChipWolf opened this issue Aug 6, 2021 · 4 comments

Comments

@ChipWolf
Copy link

ChipWolf commented Aug 6, 2021

Continuation of #10: the proposed enhancement here is to read a list of commands, perhaps from a file at the root of the server to execute a custom set of shutdown commands

The current implementation uses a single 'say' command, our use-case is a preference for 'title' commands at intervals before a shutdown.

c.c. @morrissimo

@morrissimo
Copy link
Contributor

Definitely like the idea - already thought of having the last 5 seconds countdown to shutdown, like I've seen on other servers.

But: I would need guidance from @itzg on this one, as I've got no idea how to do something like run an arbitrary script given the current Go harness

@itzg
Copy link
Owner

itzg commented Aug 6, 2021

Yeah, was also thinking that idea/request would show up soon 😀 I don't have any particular guidance or hesitation with reading a script file, other than I think leveraging the builtin Go templating would be cool for populating variables as needed, such as time to shutdown.

@ChipWolf
Copy link
Author

ChipWolf commented Aug 7, 2021

I'd probably do something as simple as running a shell script, a bunch of rcon-cli commands with variable substitutions maybe?

@jemand771
Copy link

just as a minor addition (as it somehow relates to this feature request):
kicking all users with a (possibly configurable) message before stopping the server could also improve the experience for players.
e.g. when the server restarts while someone is connected and afk, they'll see the "hey, the server is restarting" message instead of "server closed"

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

4 participants