minecrafter / RedisBungee

The leading player synchronization system for BungeeCord
https://www.spigotmc.org/resources/redisbungee.13494/
Eclipse Public License 1.0
159 stars 123 forks source link

Added support for random server ID's #78

Closed kogeki closed 2 years ago

kogeki commented 4 years ago

Useful for automatically deploying servers when you don't care about the server-id.

Mystiflow commented 4 years ago

I feel like it is more appropriate to make a script/block of code in each server to make and replace the config for you.

kogeki commented 4 years ago

Maybe. But wouldn't you would have to restart the bungee after it loads because the configuration changed?

Mystiflow commented 4 years ago

You could do a text replacement on the config file replacing a placeholder with the random string before the java exe. Something like https://linuxhint.com/replace_string_in_file_bash/