Rank Colour (Like Hypixel)

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Shirubeon

Member
Jun 14, 2021
2
0
1
24
Category:
Skript


Suggested name:
Rankcolor


Spigot/Skript Version:
1.16.5


What I want:
A rank color skript so if you type /rankcolour [color] it will change your rank to that specified colour. Basically it should change the + in the rank to a different color.

Ideas for commands:
/rankcolor (color)


Ideas for permissions:
skript.rankcolor


When I'd like it by: any time
 
Category:
Skript


Suggested name:
Rankcolor


Spigot/Skript Version:
1.16.5


What I want:
A rank color skript so if you type /rankcolour [color] it will change your rank to that specified colour. Basically it should change the + in the rank to a different color.

Ideas for commands:
/rankcolor (color)


Ideas for permissions:
skript.rankcolor


When I'd like it by: any time
This may be slightly complicated based on your setup. DM me your discord and I can help you out.
 
command /rank [<player>] [<text>] [<text>]:
permission: op
trigger:
if arg-3 is not set:
send "&cYou Must Say The Colour You Want"
if arg-3 is set:
if arg-3 is "dark blue":
set {rank::%player%} to "&1%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &1%player%"
send "&2Your rank has been set!"
if arg-3 is "light red":
set {rank::%player%} to "&c%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &c%player%"
send "&2Your rank has been set!"
if arg-3 is "red":
set {rank::%player%} to "&4%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &4%player%"
send "&2Your rank has been set!"
if arg-3 is "blue":
set {rank::%player%} to "&9%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &9%player%"
send "&2Your rank has been set!"
if arg-3 is "aqua":
set {rank::%player%} to "&3%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &3%player%"
send "&2Your rank has been set!"
if arg-3 is "orange":
set {rank::%player%} to "&6%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &6%player%"
send "&2Your rank has been set!"
if arg-3 is "yellow":
set {rank::%player%} to "&e%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &e%player%"
send "&2Your rank has been set!"
if arg-3 is "pink":
set {rank::%player%} to "&5%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &5%player%"
send "&2Your rank has been set!"
if arg-3 is "gray":
set {rank::%player%} to "&8%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &8%player%"
send "&2Your rank has been set!"
if arg-3 is "green":
set {rank::%player%} to "&2%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &2%player%"
send "&2Your rank has been set!"
if arg-3 is "lime":
set {rank::%player%} to "&a%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &a%player%"
if arg-3 is "light blue":
set {rank::%player%} to "&b%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &b%player%"
send "&2Your rank has been set!"
 
What ranks do you have?
[doublepost=1631489465,1630822699][/doublepost]hope this helped
 
command /rank [<player>] [<text>] [<text>]:
permission: op
trigger:
if arg-3 is not set:
send "&cYou Must Say The Colour You Want"
if arg-3 is set:
if arg-3 is "dark blue":
set {rank::%player%} to "&1%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &1%player%"
send "&2Your rank has been set!"
if arg-3 is "light red":
set {rank::%player%} to "&c%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &c%player%"
send "&2Your rank has been set!"
if arg-3 is "red":
set {rank::%player%} to "&4%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &4%player%"
send "&2Your rank has been set!"
if arg-3 is "blue":
set {rank::%player%} to "&9%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &9%player%"
send "&2Your rank has been set!"
if arg-3 is "aqua":
set {rank::%player%} to "&3%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &3%player%"
send "&2Your rank has been set!"
if arg-3 is "orange":
set {rank::%player%} to "&6%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &6%player%"
send "&2Your rank has been set!"
if arg-3 is "yellow":
set {rank::%player%} to "&e%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &e%player%"
send "&2Your rank has been set!"
if arg-3 is "pink":
set {rank::%player%} to "&5%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &5%player%"
send "&2Your rank has been set!"
if arg-3 is "gray":
set {rank::%player%} to "&8%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &8%player%"
send "&2Your rank has been set!"
if arg-3 is "green":
set {rank::%player%} to "&2%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &2%player%"
send "&2Your rank has been set!"
if arg-3 is "lime":
set {rank::%player%} to "&a%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &a%player%"
if arg-3 is "light blue":
set {rank::%player%} to "&b%arg-2%"
set player's tablist name to "&7[&l%{rank::%player%}%&7] &b%player%"
send "&2Your rank has been set!"
oh god
 
Category:
Skript


Suggested name:
Rankcolor


Spigot/Skript Version:
1.16.5


What I want:
A rank color skript so if you type /rankcolour [color] it will change your rank to that specified colour. Basically it should change the + in the rank to a different color.

Ideas for commands:
/rankcolor (color)


Ideas for permissions:
skript.rankcolor


When I'd like it by: any time

are ranks managed by a skript? if so can i get the variables