Chat Ranks & Anti-Spam
Chat Ranks is a unique addon that allows players to have a special rank next to their name in chat. This addon allows players to have multiple ranks besides their name.
Supports Minecraft Bedrock Version 1.20.30+
This addon requires the Beta API's experimental feature as it uses Beta API's to make the chat ranks and the anti-spam. If the Beta API's feature is not enabled, the pack will not work and chat messages will display like normal.
Chat Ranks has 2 versions, one with Anti-Spam and one without the Anti-Spam
Enabling Beta API's experimental:
scroll down to Experiments
and select GameTest Framework

NOTE The Script API uses JavaScript and if you have any other packs that use the Script API Framework, the pack on the top will always function while the pack underneath could have potential issues. In this case, you will need to merge the packs together for them to both work. As you can only have one Script API pack active at a time.
Adding a chat rank to yourself or other players:
run the following command:
/tag <player> add "rank:rankhere"
Example: /tag Onlynoer add "rank:VIP"
Removing a chat rank to yourself or other players:
run the following command:
/tag <player> remove "rank:rankhere"
Example: /tag Onlynoer remove "rank:VIP"
If the player does not have a chat rank they will receive a golden Member rank

Players can also have multiple chat ranks, just give them multiple chat rank tags
Example:
/tag Onlynoer add "rank:§aDonator"
/tag Onlynoer add "rank:§dStaff"

Anti-Spam (Same Message Repeated)
if a player sends the same message more than once, it will tell them to stop spamming and cancel the message so other players do not get the spam.
Example:
I am trying to say the letter "a" more than one time:

Anti-Spam (Sending more than 3 msg in 4 sec)
If the player sends more than 3 messages in less than four seconds, the fourth message and messages after that will be canceled and not sent to the players. Every four seconds, the user's messages resets and they can send more.
Example:
I am trying to send more than 3 messages of random characters in chat.

NOTE: If you wish to edit this pack, please contact me on discord DizzeryQ ()#8226 or dizzeryq letting me know why you wish to edit it and what you plan on doing with it.
There are 2 versions, one with the anti-spam and one without the anti-spam
License: GNU GENERAL PUBLIC LICENSE
Removed necessary code
Improved code performance
Updated Addon, now works with Minecraft Version 1.20.30+ (No longer works with prior versions of Minecraft bedrock due to the beta experimental)
Ranks are now display as [Rank] [Name] prior to display as [Rank,Name,Here]
Installation
Click on either of the links to download the addon, if you click the mediafire link. Press download then open the file once finished downloading. It will automatically import into Minecraft. Then add the pack onto a world, make sure the GameTest Framework Experimentals are enabled or this will not work.
creator: https://www.youtube.com/c/DizzeryQ
updated