fix: add some logs

This commit is contained in:
2023-10-22 20:50:38 +02:00
parent b1e98b7a77
commit f9e86ede08
2 changed files with 11 additions and 1 deletions

View File

@@ -21,8 +21,13 @@ export default {
},
async rconCommand(client, command) {
try {
return client.send(command);
console.log(`[${client.host}:${client.port}] rcon command :`, command);
const res = await client.send(command);
console.log(`[${client.host}:${client.port}] rcon commands result: ${command}`);
console.log(res);
return res;
} catch (err) {
throw err;
}
return null;