Own server tags in the web panel (Settings) and server.json

Tags (max. 6, normalized like the keymaster) are sent with the heartbeat;
official and featured are only given by the MSCO admins and are refused with
a note. MSCO_TAGS environment variable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 21:20:06 +02:00
co-authored by Claude Opus 5.5
parent 1ab9a01efb
commit e523e5e17b
6 changed files with 63 additions and 4 deletions
+8
View File
@@ -13,6 +13,12 @@
window.MSCO_LANG = lang;
const DE = {
// Tags
"Tags": "Tags",
"e.g. german, roleplay, vanilla": "z.B. deutsch, roleplay, vanilla",
"Shown in the server list, comma separated (max. 6). The tag official is only given by the MSCO admins.":
"Werden in der Serverliste angezeigt, mit Komma getrennt (max. 6). Den Tag official vergeben nur die MSCO-Admins.",
// Updates
"Update": "Update",
"Update available": "Update verfügbar",
@@ -377,6 +383,7 @@
[/^Save game uploaded \((\d+) files\) - start the server to use it$/, "Spielstand hochgeladen ($1 Dateien) - starte den Server, um ihn zu benutzen"],
[/^Settings saved(.*)$/, (m, rest) => "Einstellungen gespeichert" + rest
.replace(" - some changes need a restart", " - manche Änderungen brauchen einen Neustart")
.replace(/ - the tag (.+) is only given by the MSCO admins$/, " - den Tag $1 vergeben nur die MSCO-Admins")
.replace(" - the new port only applies after the whole program restarts (docker compose restart); in Docker publish it in docker-compose.yml first",
" - der neue Port gilt erst nach einem Neustart des ganzen Programms (docker compose restart); in Docker vorher in docker-compose.yml freigeben")],
[/^The server is already (\w+)$/, (m, s) => "Der Server " + (s === "running" ? "läuft schon" : "startet schon")],
@@ -385,6 +392,7 @@
[/^No license key set - (.+)$/, "Kein Lizenzschlüssel gesetzt - hol dir einen unter msco.mbm.wtf/keys und trag ihn in den Einstellungen ein"],
[/^License key invalid: (.+)$/, "Lizenzschlüssel ungültig: $1"],
[/^Update available: (.+)$/, "Update verfügbar: $1"],
[/^(.*) - the tag (.+) is only given by the MSCO admins$/, (m, before, tag) => (DE[before] || before) + " - den Tag " + tag + " vergeben nur die MSCO-Admins"],
[/^Version (.+) is available$/, "Version $1 ist verfügbar"],
[/^Version ([0-9.]+)$/, "Version $1"],
[/^Install update (.+)\?$/, "Update $1 installieren?"],