Index: binaries/data/mods/public/gui/lobby/lobby.js =================================================================== --- binaries/data/mods/public/gui/lobby/lobby.js +++ binaries/data/mods/public/gui/lobby/lobby.js @@ -295,6 +295,21 @@ * A handler returns true if the user input should be sent as a chat message. */ var g_ChatCommands = { + "list": { + "description": translate("List users."), + "handler": args => { + let users = Engine.GetPlayerList().map(player => player.name); + addChatMessage({ + "from": "Users (" + users.length + ")", + "text": users.sort((a,b) => { + if (a.toLowerCase() < b.toLowerCase()) return -1; + if (a.toLowerCase() > b.toLowerCase()) return +1; + return 0; + }).map(player => colorPlayerName(player)).join(", ") + }); + return false; + } + }, "away": { "description": translate("Set your state to 'Away'."), "handler": args => {