Fix player info showing wrong dates
This commit is contained in:
@@ -407,16 +407,16 @@ function getPlayerInfoCommand(command, params, client) {
|
|||||||
["Account", `${getPlayerData(targetClient).accountData.name}{mediumGrey}[${getPlayerData(targetClient).accountData.databaseId}]{ALTCOLOUR}`],
|
["Account", `${getPlayerData(targetClient).accountData.name}{mediumGrey}[${getPlayerData(targetClient).accountData.databaseId}]{ALTCOLOUR}`],
|
||||||
["Character", `${getCharacterFullName(targetClient)}{mediumGrey}[${getPlayerCurrentSubAccount(targetClient).databaseId}]{ALTCOLOUR}`],
|
["Character", `${getCharacterFullName(targetClient)}{mediumGrey}[${getPlayerCurrentSubAccount(targetClient).databaseId}]{ALTCOLOUR}`],
|
||||||
["Connected", `${getTimeDifferenceDisplay(getCurrentUnixTimestamp(), getPlayerData(targetClient).connectTime)} ago`],
|
["Connected", `${getTimeDifferenceDisplay(getCurrentUnixTimestamp(), getPlayerData(targetClient).connectTime)} ago`],
|
||||||
["Registered", `${registerDate.toLocaleDateString()} - ${registerDate.toLocaleTimeString()}`],
|
["Registered", `${registerDate.toLocaleDateString()}`],
|
||||||
["Game Version", `${targetClient.gameVersion}`],
|
["Game Version", `${targetClient.gameVersion}`],
|
||||||
["Script Version", `${scriptVersion}`],
|
["Script Version", `${scriptVersion}`],
|
||||||
["Client Version", `${getPlayerData(targetClient).clientVersion}`],
|
["Client Version", `${getPlayerData(targetClient).clientVersion}`],
|
||||||
["Client Version", `${getPlayerData(targetClient).clientVersion}`],
|
["Client Version", `${getPlayerData(targetClient).clientVersion}`],
|
||||||
["Cash", `${getCurrencyString(getPlayerCurrentSubAccount(client).cash)}`],
|
["Cash", `${getCurrencyString(getPlayerCurrentSubAccount(client).cash)}`],
|
||||||
["Skin", `${skinName}{mediumGrey}[${skinModel}]{ALTCOLOUR}`],
|
["Skin", `${skinName}{mediumGrey}[Model: ${skinModel}/Index: ${skinIndex}]{ALTCOLOUR}`],
|
||||||
["Clan", `${clan}`],
|
["Clan", `${clan}`],
|
||||||
["Job", `${job}`],
|
["Job", `${job}`],
|
||||||
["Current Date", `${currentDate.toLocaleDateString()} - ${currentDate.toLocaleTimeString()}`],
|
["Current Date", `${currentDate.toLocaleDateString()}`],
|
||||||
]
|
]
|
||||||
|
|
||||||
let stats = tempStats.map(stat => `{MAINCOLOUR}${stat[0]}: {ALTCOLOUR}${stat[1]} {MAINCOLOUR}`);
|
let stats = tempStats.map(stat => `{MAINCOLOUR}${stat[0]}: {ALTCOLOUR}${stat[1]} {MAINCOLOUR}`);
|
||||||
@@ -948,4 +948,6 @@ function getPlayerInPropertyData(client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPlayerData(client).inProperty = null;
|
getPlayerData(client).inProperty = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user