mirror of
https://github.com/cloudmaker97/FS25-Discord-Bot.git
synced 2025-12-06 00:18:34 +00:00
Show no server password when none is given
This commit is contained in:
parent
883406c3de
commit
2e5dc546d7
1 changed files with 6 additions and 1 deletions
|
|
@ -117,10 +117,15 @@ export default class DiscordEmbed {
|
|||
playerListString = serverStats.getPlayerList().map(p => p.username).join(', ');
|
||||
}
|
||||
|
||||
let serverPassword = config.application.serverPassword;
|
||||
if(config.application.serverPassword == "") {
|
||||
serverPassword = "-/-";
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
embed.addFields(
|
||||
{name: config.translation.discordEmbed.titleServerName, value: serverStats.getServerName()},
|
||||
{name: config.translation.discordEmbed.titleServerPassword, value: config.application.serverPassword},
|
||||
{name: config.translation.discordEmbed.titleServerPassword, value: serverPassword},
|
||||
{name: config.translation.discordEmbed.titleServerTime, value: serverStats.getServerTime()},
|
||||
{
|
||||
name: `${config.translation.discordEmbed.titlePlayerCount} (${serverStats.getPlayerCount()}/${serverStats.getMaxPlayerCount()}):`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue