Basically, i propose adding (either inside the mod itself or in a separate mod) an optional server-side part for this mod, that would basically send a extra field (either reading from server.properties, the config file or even the newly added "cookie packets" in 1.20.5+) with the server name to the client.
If the server doesn't have the mod installed, it would fallback to the current behavior on client.
PS.: About the cookie packet thing, there is a mod (MR) that does something with those. I'm not yet familiarized with the concept, if this is remotely similar to browser cookies, etc.
Basically, i propose adding (either inside the mod itself or in a separate mod) an optional server-side part for this mod, that would basically send a extra field (either reading from server.properties, the config file or even the newly added "cookie packets" in 1.20.5+) with the server name to the client.
If the server doesn't have the mod installed, it would fallback to the current behavior on client.
PS.: About the cookie packet thing, there is a mod (MR) that does something with those. I'm not yet familiarized with the concept, if this is remotely similar to browser cookies, etc.