Z-Messages — welcome, announcements and our plugins' messages, styled your way
Demo
A welcome message, recurring announcements, and one style sheet that decides how our plugins' messages look: colour, sender name, chat or top of the screen. No more "(SERVER):" glued in front of their lines. Messages that the game or other tools send on their own (Z-ARK's restart warnings, for example) keep their usual look.
Each player also chooses, with the chat command
/msg, where the short messages of the plugins show for them: in the chat, at the top of the screen, or both. The welcome message and the announcements follow that choice, and reach each player in their own language.Upgrading from 1.0.1 — read this first
Version 1.2.2 changes how the plugin is configured. Take five minutes to read this.
- Back up your current
config.jsonbefore you update. config.jsonnow holds the settings only (switches, delays, colours, frequencies). The sentences that players read are in thelangfolder (en.json,fr.json,de.json,es.json), and your own sentences go inlang\custom.json(never shipped, never overwritten by an update).- The plugin no longer reads the texts that your old
config.jsonholds:Welcome.Text,Welcome.TextIfNotLinked, theTextsblock, and the sentences written insideAutoMessages.Messages. If you leave them as they are, the plugin still starts and reads your settings, but players see the shipped welcome text, and your announcements are not sent (see below). The old keys stay in the file without any effect, and you can delete them. - Announcements:
AutoMessages.Messagesis now a list of text keys. An element is either a key name ("AutoMessage1") or an object with aKey({ "Key": "AutoMessage1", "Color": [255,60,40] }). An element that still holds its sentence directly (an old object with"Text"and noKey) is skipped. An old element that is a plain sentence is read as a key name that has no text, so it is skipped too. If nothing valid is left, nothing is sent. Z-Messages writes one warning in the server log per load (AutoMessages: skipped N element(s) without a Key...) so you can see it. - With Z-ARK 0.285.0 or newer, nothing to do by hand: install the update from Z-ARK. It keeps your settings, moves your custom welcome and announcement texts into
lang\custom.json(nothing is lost), removes the old keys after a safety copy, and lists everything in the update report. - Without Z-ARK, follow the steps in "Without Z-ARK, step by step" below.
- New settings that are missing from your old
config.jsonsimply take their default value:PlayerDisplay.Default=both,Style.TopOfScreenMaxLength= 80. The oldStyle.TopOfScreenCharsPerLineis no longer read (useTopOfScreenMaxLength). One thing to copy by hand: the style namedchat(used by Z-Chat). If it is missing from yourStylesblock, those messages use your generalStyleinstead. Copy it from the shippedconfig.json.
Without Z-ARK, step by step
1. Make a copy of the whole
Z-Messages plugin folder.2. Stop the server.
3. Replace the
.dll, PluginInfo.json and config.commented.json, and replace the lang folder except lang\custom.json (if you already have one, keep it).4. Keep your
config.json.5. Move your texts. Take each sentence you had written in the old
config.json and put it in lang\custom.json, under its language, with a key name. Then, in AutoMessages.Messages, name the keys.6. Compare your
config.json with the one shipped in the new package to see the new settings.7. Start the server, then run
ZMessages.Status: it should end with | texts: lang EN FR DE ES and, if custom.json holds texts, , custom EN:3 (language and number of texts).Example. Your old
config.json (1.0.1) had:
JSON:
"Welcome": {
"Enabled": true,
"DelaySeconds": 8,
"MaxWaitSeconds": 600,
"Text": "Welcome {player}! Our rules are on /info.",
"TextIfNotLinked": "Type /zlink to link your Discord account."
},
"AutoMessages": {
"Enabled": true,
"IntervalMinutes": 10,
"Messages": [
"Join our Discord, the link is in /info.",
{ "Text": "Reboot at 4am", "Color": [255,60,40], "TopOfScreen": true }
]
}
config.json keeps only the settings, and names the keys:
JSON:
"Welcome": {
"Enabled": true,
"DelaySeconds": 8,
"MaxWaitSeconds": 600,
"LinkedAccounts": []
},
"AutoMessages": {
"Enabled": true,
"IntervalMinutes": 10,
"Messages": [
"AutoMessage1",
{ "Key": "AutoMessage2", "Color": [255,60,40], "TopOfScreen": true }
]
}
lang\custom.json holds the sentences:
JSON:
{
"EN": {
"WelcomeText": "Welcome {player}! Our rules are on /info.",
"WelcomeIfNotLinked": "Type /zlink to link your Discord account.",
"AutoMessage1": "Join our Discord, the link is in /info.",
"AutoMessage2": "Reboot at 4am"
}
}
WelcomeText in EN only, a player whose language is French still gets the shipped French welcome. To change it for everybody, write it for each language ("FR": {...}, "DE": {...}, "ES": {...}). For a key that has no shipped text (AutoMessage1, AutoMessage2), a text written in one language only goes to all players in that language.Install
Drop the
Z-Messages folder into ShooterGame/Binaries/Win64/ArkApi/Plugins/. Requires AsaApi 2.11 or newer. Loads at server start. config.json and the lang folder are re-read every minute, or at once with ZMessages.Reload: no restart needed.Features
- Welcome — a message to each arriving player, after their character has loaded (
DelaySeconds,MaxWaitSeconds).{player}becomes their name. Off by default: enable it only if no other plugin already greets players. - AutoMessages — announcements to everyone, one per round, in turn, every
IntervalMinutes. Off by default. An announcement can target only some players:OnlyIfNotLinked(players missing fromWelcome.LinkedAccounts) andOnlyIfBaseNotProtected(players whose tribe is not in theDecay.ExemptTeamslist of the Z-Clean plugin, on the same server; without Z-Clean nobody counts as protected). - Each player's choice, /msg — every player chooses where short messages show:
/msg both,/msg chator/msg top. The welcome and the announcements follow it. - Each player's language — the welcome and the announcements go to each player in their own language.
- Style — the default look of all messages:
Color[R, G, B],Sender(put your community name),TopOfScreen(chat or big text at the top),DurationSeconds,Scale,TopOfScreenMaxLength. (Boldis still read but has no effect: ARK's chat has no bold.) - Per-message style — write a message as an object and set only what changes:
{ "Key": "AutoMessage2", "Color": [255,60,40] }. APaneloption shows a titled window the player has to close — keep it for warnings. - Styles — a style sheet by intent:
info,succes,alerte,urgent,discret,chat(add your own). Our other plugins (Z-Points, Z-Colour, Z-Info, Z-Chat, Z-Rcon...) only name the intent; you decide here what it looks like, for all of them. - Formatting — named colours, exact shades, emotes and images inside a message. See
README.mdin this folder, including what the game cannot do. - For our other plugins — they send their messages through Z-Messages when it is installed. If it is absent, they fall back to the game's ordinary message: nothing breaks, it is just plainer.
Player commands
/msg both— short messages in the chat and at the top of the screen (the default)./msg chat— in the chat only./msg top— at the top of the screen only./msgalone shows the current choice. The words are also understood in French (deux,haut), German (beide,oben) and Spanish (ambos,arriba). The choice is remembered for each player indisplay.json, next toconfig.json.
RCON commands
ZMessages.Reload— re-readsconfig.jsonand thelangfolder. The answer issettings reloaded (ACTIVE)or(DISABLED), orreload FAILED, previous settings keptwhenconfig.jsoncannot be read.ZMessages.Status— version, state (active or disabled), the default display and how many players chose each place, then| texts: lang EN FR DE ESand, ifcustom.jsonholds texts,, custom FR:2(language and number of texts).
Configure (config.json)
General.Enabled—falseputs the plugin to sleep.General.Language— the language of the server (EN, FR, DE, ES or your own): used for players whose own language is unknown.Style,Styles,PlayerDisplay,Welcome,AutoMessages— see above andconfig.commented.json.Welcome.LinkedAccounts— the list of players who linked their account (see above).
Configuration and texts
Settings.
config.json holds the settings only. Every setting is explained in config.commented.json, which comes with the plugin and is replaced at each update. Read it before you change anything. Do not edit it and do not rename it to config.json: it contains comments. The plugin never writes config.json.Texts. The sentences are in the
lang folder, one file per language: en.json, fr.json, de.json, es.json. They are replaced at each update: do not edit them. To change a text or add one, use lang\custom.json, never shipped and never overwritten. Format: {"EN": {"Key": "text"}, "FR": {"Key": "texte"}}. A key left out keeps the shipped text. Search order for a text: your text in the player's language, the shipped file of that language, your English text, the shipped English file, then the English text built into the plugin. A file that cannot be read (invalid JSON) is ignored, with a warning in the server log, and nothing is written.Keys used by Z-Messages
Sender— the default sender name (Server, Serveur, Servidor...), used whenStyle.Senderis empty.WelcomeText— the welcome message.{player}becomes the player's name.WelcomeIfNotLinked— a sentence added after the welcome, only for players missing fromWelcome.LinkedAccounts.WelcomeIfNotProtected— a sentence added after the welcome for players whose tribe is not protected. Empty by default: fill it incustom.jsonto use it.AutoMessageInfo— the shipped announcement. Your own announcements are new keys that you invent (for exampleAutoMessage1) and name inAutoMessages.Messages.DisplayNowBoth,DisplayNowChat,DisplayNowTop,DisplayUsage,DisplayModeBoth,DisplayModeChat,DisplayModeTop— what/msganswers.
Languages. Every text for one player is sent in that player's language: the flag they chose in the ZMenu mod (https://www.curseforge.com/ark-survival-ascended/mods/zmenu), passed on by the Z-Bridge plugin. Without ZMenu and Z-Bridge, or when the language is unknown, the language of the server is used (
General.Language). To add a language (for example Dutch), create lang\nl.json (a code of 2 or 3 letters) with the same keys as en.json, or add an "NL" block in custom.json.The /zlink invitation (1.2.2). The sentence
WelcomeIfNotLinked ("Type /zlink to link your Discord account to your character.") is shipped in English, French, German and Spanish. It is added to the welcome only if the Z-Chat plugin is loaded on the server (Z-Chat provides the /zlink command; otherwise the sentence would announce a command that does not exist), and only for players who are not in Welcome.LinkedAccounts. That list is filled by Z-ARK. Without Z-ARK, fill it by hand in config.json, with the EOS id of each player who has linked their account, between quotes:
JSON:
"Welcome": {
"LinkedAccounts": ["00021a2b3c4d5e6f7a8b9c0d1e2f3a4b", "00029f8e7d6c5b4a39281706f5e4d3c2"]
}
custom.json.Protected tribes.
WelcomeIfNotProtected is empty by default, so nothing is added. If you write a text for it, the plugin adds it for players whose tribe is not in the Decay.ExemptTeams list of the Z-Clean plugin (it reads Z-Clean's config.json on the same server). A player without a tribe also gets it. If Z-Clean is not installed, or its file cannot be read, nobody counts as protected: everybody gets the sentence.Where messages show. Short messages go to the chat AND to the top of the screen by default. Each player picks with
/msg; the default for the server is PlayerDisplay.Default (shipped: both). A text longer than Style.TopOfScreenMaxLength characters (shipped: 80) goes to the chat only, so nobody sees the same line twice. A block with Panel set to true stays a panel.Compatibility
ARK: Survival Ascended dedicated servers on Windows. Requires AsaApi 2.11 or newer.
External connections and data
- No network connection. The plugin opens no connection of its own and sends nothing anywhere: no web request, no telemetry, no licence check, no update check.
- Files written:
display.jsononly, next toconfig.json: the/msgchoice of each player (EOS ids).config.jsonand the files inlangare read, never written. - Files read:
config.json, the files inlang, and, only if present, the Z-Clean plugin'sconfig.json(the protected tribes list) and, once, the Z-Points plugin'smsgstyle.jsonto import display choices players had made there (it is never changed). - Data kept:
Welcome.LinkedAccounts, a list of EOS ids that you, or an external tool such as Z-ARK, keep inconfig.json; Z-Messages only reads it. - Images and emotes in messages are the game's own assets, never web addresses.
- It exports functions that our other plugins call to send their messages, inside the server process.
- No registry access, no external program started, no other data collected.
Dependencies and limitations
- No required dependency. Required by Z-Chat; used by our other plugins when it is installed. The
/zlinkinvitation needs Z-Chat; a player's own language needs ZMenu and Z-Bridge. - Two game hooks: a player's arrival (for the welcome message) and departure.
- ARK's chat has no bold; what else the game cannot display is listed in
README.md. - Messages that the game or other tools send on their own keep their usual look.
For plugin authors
Any plugin can send its messages through Z-Messages, and respect the player's
/msg choice. ZMsg::DireSelonJoueur sends one short line to one player at the place they chose, and ZMsg::ChoisirAffichage lets your own command change the choice. Without Z-Messages 1.2.0 or newer, your plugin falls back to "both" and nothing breaks. See the end of README.md, in the package, for the details.Updates
Z-ARK (server manager, https://z-ark.fr/en/) checks for new versions of this plugin and installs them from its dashboard (version 0.285.0 or newer also moves your custom texts for you).
Without Z-ARK: click Watch at the top of this page to be notified of every new version; what changed is listed in the Updates tab. To update, stop the server, replace the plugin's .dll, PluginInfo.json and config.commented.json, replace the
lang folder except lang\custom.json, keep your config.json, then start the server again.Coming from version 1.0.1: read the section Upgrading from 1.0.1 — read this first above, before you update.
Support
A question, a bug, an idea? Post it in the Discussion tab of this page, or use the form at https://z-ark.fr/en/plugin-support/ (no account needed). Please give the plugin version, your AsaApi version and what you saw. Z-ARK users can also write to us from Settings > Support in Z-ARK.
Built with AI, knowingly
This plugin was written with an artificial intelligence, and we would rather say it plainly. It is not code thrown together at random: behind it is someone from the trade (software development, server operations, community management) who decides every feature, reviews it and puts it to the test on a real cluster, with real players, before it reaches you. The same goes for the ZMenu client mod. Bugs reported in the Discussion tab get fixed.