aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-05-19 08:51:37 -0500
committermat <github@matdoes.dev>2021-05-19 08:51:47 -0500
commitf735267ae66c2f6c75d7f599631e07d25ad73114 (patch)
treed9eb139d4e578ae51e240c0b72715cfcc7422f8e /src/cleaners
parente8a4819edd5dbefa26dfca2ed7d9bb933b1b52b4 (diff)
downloadskyblock-api-f735267ae66c2f6c75d7f599631e07d25ad73114.tar.gz
skyblock-api-f735267ae66c2f6c75d7f599631e07d25ad73114.tar.bz2
skyblock-api-f735267ae66c2f6c75d7f599631e07d25ad73114.zip
add gm rank
Diffstat (limited to 'src/cleaners')
-rw-r--r--src/cleaners/rank.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cleaners/rank.ts b/src/cleaners/rank.ts
index 6d12f6f..ec55e8b 100644
--- a/src/cleaners/rank.ts
+++ b/src/cleaners/rank.ts
@@ -11,6 +11,7 @@ const rankColors: { [ name: string ]: string } = {
'YOUTUBE': 'c',
'HELPER': '9',
'MODERATOR': '2',
+ 'GM': '2',
'ADMIN': 'c'
}
@@ -49,6 +50,7 @@ export function cleanRank({
if (name === 'SUPERSTAR') name = 'MVP++'
// YouTube rank is called YouTuber, change this to the proper name
else if (name === 'YOUTUBER') name = 'YOUTUBE'
+ else if (name === 'GAME_MASTER') name = 'GM'
else if (name === undefined) name = 'NONE'
const plusColor = rankPlusColor ? colorCodeFromName(rankPlusColor) : null