@@ -252,8 +252,10 @@ export async function fs25Loop(client: TClient, watchList: TClient["watchList"][
252
252
253
253
for ( const player of leftPlayers ) {
254
254
const watchListData = watchList . find ( x => x . _id === player . name ) ;
255
+ const playerTimesData = client . playerTimes25 . cache . find ( x => x . _id === player . name ) ;
256
+ const playerDiscordMention = playerTimesData ? userMention ( playerTimesData . _id ) : "" ;
255
257
const embed = new EmbedBuilder ( )
256
- . setDescription ( `\`${ player . name } \`${ getDecorators ( player ) } left **${ serverAcroUp } ** at ${ timestamp } ` )
258
+ . setDescription ( `\`${ player . name } \`${ getDecorators ( player ) } ${ playerDiscordMention } left **${ serverAcroUp } ** at ${ timestamp } ` )
257
259
. setColor ( client . config . EMBED_COLOR_RED )
258
260
. setFooter ( player . uptime ? { text : `Playtime: ${ formatUptime ( player ) } ` } : null ) ;
259
261
@@ -263,6 +265,7 @@ export async function fs25Loop(client: TClient, watchList: TClient["watchList"][
263
265
await wlChannel . send ( { embeds : [ new EmbedBuilder ( )
264
266
. setTitle ( `WatchList - ${ watchListData . isSevere ? "ban" : "watch over" } ` )
265
267
. setDescription ( `\`${ watchListData . _id } \` left **${ serverAcroUp } ** at ${ timestamp } ` )
268
+ . setFooter ( player . uptime ? { text : `Playtime: ${ formatUptime ( player ) } ` } : null )
266
269
. setColor ( client . config . EMBED_COLOR_RED )
267
270
] } ) ;
268
271
}
@@ -273,7 +276,9 @@ export async function fs25Loop(client: TClient, watchList: TClient["watchList"][
273
276
for ( const player of joinedPlayers ) {
274
277
const watchListData = watchList . find ( y => y . _id === player . name ) ;
275
278
const embed = new EmbedBuilder ( ) . setColor ( client . config . EMBED_COLOR_GREEN ) ;
276
- let description = `\`${ player . name } \`${ getDecorators ( player ) } joined **${ serverAcroUp } ** at ${ timestamp } ` ;
279
+ const playerTimesData = client . playerTimes25 . cache . find ( x => x . _id === player . name ) ;
280
+ const playerDiscordMention = playerTimesData ? " " + userMention ( playerTimesData . _id ) : "" ;
281
+ let description = `\`${ player . name } \`${ getDecorators ( player ) } ${ playerDiscordMention } joined **${ serverAcroUp } ** at ${ timestamp } ` ;
277
282
278
283
if ( player . uptime ) embed . setFooter ( { text : `Playtime: ${ formatUptime ( player ) } ` } ) ;
279
284
0 commit comments