Fix for switchchar display
This commit is contained in:
@@ -245,9 +245,9 @@ function showCharacterSelectToClient(client) {
|
|||||||
//}, 500);
|
//}, 500);
|
||||||
logToConsole(LOG_DEBUG, `[VRR.SubAccount] ${getPlayerDisplayForConsole(client)} is being shown the character select GUI`);
|
logToConsole(LOG_DEBUG, `[VRR.SubAccount] ${getPlayerDisplayForConsole(client)} is being shown the character select GUI`);
|
||||||
} else {
|
} else {
|
||||||
let charactersList = getPlayerData(client).subAccounts.map(sacct, index => `{teal}${index}: {ALTCOLOUR}${sacct.name}`);
|
let charactersList = getPlayerData(client).subAccounts.map((sacct, index) => `{teal}${index + 1}: {ALTCOLOUR}${sacct.firstName} ${sacct.lastName}`);
|
||||||
let chunkedList = splitArrayIntoChunks(charactersList, 5);
|
let chunkedList = splitArrayIntoChunks(charactersList, 5);
|
||||||
messagePlayerNormal(client, makeChatBoxSectionHeader(getLocaleString(client, "HeaderCharacterListSelf")));
|
messagePlayerNormal(client, makeChatBoxSectionHeader(getLocaleString(client, "HeaderCharactersListSelf")));
|
||||||
for (let i in chunkedList) {
|
for (let i in chunkedList) {
|
||||||
messagePlayerNormal(client, chunkedList[i].join("{MAINCOLOUR}, "));
|
messagePlayerNormal(client, chunkedList[i].join("{MAINCOLOUR}, "));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user