diff --git a/src/modules/misc/mcserver.js b/src/modules/misc/mcserver.js index c5987ee..fb5ad24 100644 --- a/src/modules/misc/mcserver.js +++ b/src/modules/misc/mcserver.js @@ -242,7 +242,11 @@ mcserver.callback = async function (msg, line) { await msg.removeReaction("\uD83C\uDFD3"); return `Failed to query:\n\`\`\`\n${data.error.message}\n\`\`\``; } else { - if (data.version.name == "TCPShield.com") data = await queryServerNoIdent(ip, port); + let tcpshield = false; + if (data.version.name == "TCPShield.com") { + data = await queryServerNoIdent(ip, port); + tcpshield = true; + } await msg.removeReaction("\uD83C\uDFD3"); @@ -284,6 +288,9 @@ mcserver.callback = async function (msg, line) { thumbnail: image && { url: "attachment://icon.png", }, + footer: { + text: tcpshield && "Server uses TCPShield", + }, }, file: image && { file: image,