mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 09:34:23 -05:00
updatePlayerList log fix
This commit is contained in:
parent
a533ff6ac6
commit
967bfe2091
@ -750,7 +750,7 @@ export default class SquadServer extends EventEmitter {
|
||||
let matches;
|
||||
|
||||
if (!forceUpdate) {
|
||||
Logger.verbose('updatePlayerList', 1, `trying to get condition ${JSON.stringify(condition)}`);
|
||||
Logger.verbose('updatePlayerList', 1, `trying to get condition ${condition.toString()}`);
|
||||
matches = this.players.filter(condition);
|
||||
if (matches.length === 1) return matches[0];
|
||||
Logger.verbose('updatePlayerList', 1, `ERROR: failed to find player ${JSON.stringify(condition)}, matches found: ${matches.length}`);
|
||||
|
Loading…
Reference in New Issue
Block a user