#How can I change the display of the ranks?
1 messages · Page 1 of 1 (latest)
player[0].onScreenDisplay.setTitle(`:wood_sword:§←§d[OG] Mining §bSimulator\n\n§d${name}'s Stats:
\n§a - Balance: ${fMoney}
§3 - Tokens: ${fTokens}
§b - BlocksMined: ${fBlocksMined}
§d - Rank: §6Ownership
§aSocials:
§9 Discord Code:
§7 discord.gg/asdadasd
`)
}, 5)
If this makes it easier.
it'd be easy if you have a prefix in your rank tags
I figured it out.
so basically what you're trying to do, is to display all the rank tags? like
player[0].onScreenDisplay.setTitle(`:wood_sword:§←§d[OG] Mining §bSimulator\n\n§d${name}'s Stats:
\n§a - Balance: ${fMoney}
§3 - Tokens: ${fTokens}
§b - BlocksMined: ${fBlocksMined}
§d - Rank: §6Ownership, Member, Admin
§aSocials:
§9 Discord Code:
§7 discordlink
`)
}, 5)
If this makes it easier.
well like depending on what rank you have, it'll display it
so display the highest rank?
the highest rank each player has
yeah
pretty much what i did
yeah, but what if a player has more than one rank tag?
it'll display the highest one in the code
You don't have a giant chunk of else ifs, right?
I'd put them all in an array, the higher is the rank the earlier in the array, then check for the player's tags and check what element you find first in the array