mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Format the output of /showfriendlist & WL to possibly show the names as well
This commit is contained in:
parent
e8f8635619
commit
1aac175b9a
1 changed files with 10 additions and 2 deletions
|
@ -627,7 +627,11 @@ const CommonCommands = [
|
|||
},
|
||||
{
|
||||
Tag: 'showwhitelist',
|
||||
Action: () => ChatRoomSendLocal(TextGet('CommandWhitelist') + JSON.stringify(Player.WhiteList)),
|
||||
Action: () => {
|
||||
let msg = TextGet('CommandWhitelist') + '\n';
|
||||
msg += Player.WhiteList.sort((i, j) => i - j).map(num => `• ${Player.FriendNames.get(num) ?? "?"} (${num})`).join('\n');
|
||||
ChatRoomSendLocal(msg);
|
||||
}
|
||||
},
|
||||
{
|
||||
Tag: 'showghostlist',
|
||||
|
@ -635,7 +639,11 @@ const CommonCommands = [
|
|||
},
|
||||
{
|
||||
Tag: 'showfriendlist',
|
||||
Action: () => ChatRoomSendLocal(TextGet('CommandFriendlist') + JSON.stringify(Player.FriendList)),
|
||||
Action: () => {
|
||||
let msg = TextGet('CommandFriendlist') + '\n';
|
||||
msg += Player.FriendList.sort((i, j) => i - j).map(num => `• ${Player.FriendNames.get(num) ?? "?"} (${num})`).join('\n');
|
||||
ChatRoomSendLocal(msg);
|
||||
},
|
||||
},
|
||||
{
|
||||
Tag: 'openfriendlist',
|
||||
|
|
Loading…
Add table
Reference in a new issue