We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 126af9c commit d47fd9aCopy full SHA for d47fd9a
Games/core/Game.js
@@ -996,16 +996,21 @@ module.exports = class Game {
996
}
997
998
failReadyCheck() {
999
+ const playersToKick = [];
1000
for (let player of this.players) {
1001
if (!this.readyPlayers[player.id]) {
- this.kickPlayer(player);
1002
- this.sendAlert(
+ playersToKick.push(player);
1003
+ }
1004
1005
+
1006
+ for (let player of playersToKick) {
1007
+ this.kickPlayer(player);
1008
+ this.sendAlert(
1009
`${player.name} was kicked for inactivity.`,
1010
undefined,
1011
1012
["info"]
- );
- }
1013
+ );
1014
1015
1016
this.cancelReadyCheck();
0 commit comments