diff --git a/src/MPLoop.ts b/src/MPLoop.ts index 8aa6e20..6032c36 100644 --- a/src/MPLoop.ts +++ b/src/MPLoop.ts @@ -65,7 +65,8 @@ export default async(client:TClient,Channel:string,Message:string,ServerName:str function playerLogEmbed(player:FSPlayer,joinLog:boolean){ const logEmbed = new client.embed().setDescription(`**${player.name} ${player.isAdmin ? '| admin' : ''}** ${joinLog ? 'joined' : 'left'} **${ServerName}** at `); if (joinLog) return logEmbed.setColor(client.config.embedColorGreen); - else if (player.uptime > 0) return logEmbed.setColor(client.config.embedColorRed).setFooter({text:`Farmed for ${client.formatPlayerUptime(player.uptime)}`}) + else if (player.uptime > 0) return logEmbed.setColor(client.config.embedColorRed).setFooter({text:`Farmed for ${client.formatPlayerUptime(player.uptime)}`}); + else return logEmbed.setColor(client.config.embedColorRed); } function playerLog(){ // Player leaving