diff options
author | jak1 <mike.wollmann@gmail.com> | 2021-09-05 18:02:40 +0200 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-09-05 18:03:02 +0200 |
commit | 980f05e2b166a9aff60a276295bc2b94e11b2977 (patch) | |
tree | 1fd83681e2fe16863677794c5ce269df4c436ef5 | |
parent | d4342501946eefc127ef9a0e18164a3d5544d2ad (diff) | |
download | thepixelworld-980f05e2b166a9aff60a276295bc2b94e11b2977.tar.gz thepixelworld-980f05e2b166a9aff60a276295bc2b94e11b2977.tar.bz2 thepixelworld-980f05e2b166a9aff60a276295bc2b94e11b2977.tar.xz thepixelworld-980f05e2b166a9aff60a276295bc2b94e11b2977.zip |
added singular/plural for /who
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -207,7 +207,7 @@ io.sockets.on('connection', function(socket){ switch (command[0]) { // /who (args: none) case "who": - socket.emit('addToChat', {ctimestamp: getTimeStamp(0), content: servermsg + Object.keys(Player.Player.list).length + " Players Online.", tab: "any"}); + socket.emit('addToChat', {ctimestamp: getTimeStamp(0), content: servermsg + Object.keys(Player.Player.list).length + " Player" + ((Object.keys(Player.Player.list).length > 1)? "s" : "") + " Online.", tab: "any"}); break; // /where (args: none) |