From f65d6418809618537a7f6d77d4cabbfe57b5cb2d Mon Sep 17 00:00:00 2001 From: luca0N! Date: Thu, 31 Dec 2020 17:40:32 -0300 Subject: [PATCH] =?UTF-8?q?Prepara=C3=A7=C3=A3o=20para=20a=20v1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f31e668..47efcf2 100644 --- a/index.js +++ b/index.js @@ -30,12 +30,14 @@ const Pontos = require('./pontuação.js'); var vars = JSON.parse(fs.readFileSync('config.json', 'UTF8')).variáveis; +var versão = "v1.0"; + const wss = new WebSocket.Server({ port: vars["servidor.porta"] }); var clientes = [], salas = []; -console.log('Servidor Força, v0.1-beta'); +console.log("Servidor Força, " + versão); var filtros = JSON.parse(fs.readFileSync('filtro.json', 'UTF8')); @@ -779,7 +781,7 @@ function checarInativos(){ if (Date.now() - clientes[x].uas >= vars["cliente.uas.limite"]){ console.log("[" + clientes[x].endereço + "] O jogador parece estar inativo. Fechando conexão."); // Alertar os clientes. - alertarClientesEvento("EVENTO_JOGADOR_CHUTADO_POR_INATIVIDADE", clientes[x].sala))); + alertarClientesEvento("EVENTO_JOGADOR_CHUTADO_POR_INATIVIDADE", clientes[x].sala, { jogador: clientes[x].apelido }); clientes[x].soquete.terminate(); } }