Welcome message to different server groups

Started by Sporranlegion, January 05, 2020, 05:35:16 PM

Previous topic - Next topic

Sporranlegion

I have been trying to create different welcome messages for different server groups but with no success.

I have changed the server cfg file bot_functions to include WelcomeMessage:welcome_members and have written a new welcomemessages_members.cfg file in the config folder.

How do I activate this message in the server config file.

Thanks for taking the time to help.

Stefan1200

Okay, and you put the right path to the file welcomemessages_members.cfg at welcome_members_file in the JTS3ServerMod config file?

Sporranlegion

That is the part I am not sure of, do I have to create a section similar to this...

# A comma separated list (without spaces) of server group ids.
# Depends on the given mode, this server groups can be ignored or only this server groups get this welcome message!
# If no server groups should be ignored, set no server groups here and select the group list mode ignore!
welcome_group_list =
# Select one of the two modes for the server group list.
# ignore = The selected server groups will be ignored and don't get this welcome message.
# only = Only the selected server groups get this welcome message.
welcome_group_list_mode = ignore
# A comma separated list (without spaces) of the total connection count (it's the same value as %CLIENT_TOTALCONNECTIONS% at the welcome message),
# when this message should be send to the client. Set this to -1 to show it every time.
# Ranges like 1-100, -20 (means 20 or less) or 100- (means 100 or more) are also possible.
welcome_showonconnectionnumber = -1
# A comma separated list (without spaces) of platform names (it's the same value as %CLIENT_PLATFORM% at the welcome message).
# Only selected platforms get the welcome message or leave this empty to send the welcome message to all platforms.
# Possible platforms: Windows, Mac, Linux, Android, iOS
welcome_platform_list =
# Select the message mode, how the client should get the message.
# poke or chat are valid values!
welcome_message_mode = poke
# Path to file which contains the welcome message.
welcome_file = %apphome%config/server1/welcomemessages.cfg

Or just add the paths to this section after the path to the welcome_file = %apphome%config/server1/welcomemessages.cfg

Stefan1200

Well, why you don't follow the manual and use the -updateconfig command? That would create all necessary config keys for you.

Sporranlegion

Should have thought of that first before bothering you.
Many thanks Stefan.