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:
@@ -396,6 +396,8 @@ function renderSettings(page) {
|
||||
h("div", { class: "section-body form-grid wide" },
|
||||
text("name", "Server name", c.name, { max: 60 }),
|
||||
text("description", "Description", c.description, { max: 300 }),
|
||||
text("tags", "Tags", c.tags, { max: 140, placeholder: "e.g. german, roleplay, vanilla",
|
||||
hint: "Shown in the server list, comma separated (max. 6). The tag official is only given by the MSCO admins." }),
|
||||
number("maxPlayers", "Max players", c.maxPlayers, { min: 1, max: 64 }),
|
||||
text("publicAddress", "Public address", c.publicAddress, { max: 200, placeholder: "automatic", hint: "IP or domain players connect to (empty = automatic)" }),
|
||||
toggle("isPublic", "Listed in the server browser", c.isPublic),
|
||||
|
||||
@@ -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?"],
|
||||
|
||||
Reference in New Issue
Block a user