diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-05-08 22:44:26 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-08 22:44:26 +0200 |
commit | cfb933b598c2c015b41b16051c0d9da2bc985cc0 (patch) | |
tree | e77a64449e6486071570414a8f611f649f03acec | |
parent | e4e8744269b4c322323751da66eff9220ddd92e1 (diff) | |
download | server-cfb933b598c2c015b41b16051c0d9da2bc985cc0.tar.gz |
Format 1-player option.
-rw-r--r-- | server.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1221,10 +1221,10 @@ function format_options(options) { return k.replace(/_/g, " ").replace(/^\w/, c => c.toUpperCase()) } return Object.entries(options||{}).map(([k,v]) => { - if (v === true || v === 1) - return to_english(k) if (k === "players") return v + " Player" + if (v === true || v === 1) + return to_english(k) return to_english(k) + "=" + to_english(v) }).join(", ") } |