Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ▄█ ▄▄▄▄███▄▄▄▄ ▄███████▄ ▄████████ ▄████████ ███
- # ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███ ▀█████████▄
- # ███▌ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ▀███▀▀██
- # ███▌ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀
- # ███▌ ███ ███ ███ ▀█████████▀ ▀███████████ ███ ███
- # ███ ███ ███ ███ ███ ███ ███ ███ █▄ ███
- # ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
- # █▀ ▀█ ███ █▀ ▄████▀ ███ █▀ ████████▀ ▄████▀
- command /rank [<offline player>] [<text>]:
- permission: server.admin
- permission message: &cInsufficent permissions.
- aliases: /setrank
- trigger:
- if argument 1 is set:
- if argument 2 is set:
- if argument 2 is "admin":
- set {player::%arg-1's uuid%::rank} to "Admin"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&c&lADMIN&8] &c"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cAdmin" to player
- send "&c&l[RANK] &rYour rank has been updated to &cAdmin &rby &c%player%" to argument 1
- else if argument 2 is "dev" or "developer":
- set {player::%arg-1's uuid%::rank} to "Developer"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&d&lDEV&8] &d"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cDeveloper" to player
- send "&c&l[RANK] &rYour rank has been updated to &cDeveloper &rby &c%player%" to argument 1
- else if argument 2 is "senior mod" or "srmod":
- set {player::%arg-1's uuid%::rank} to "Senior Mod"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&6&lSR.MOD&8] &6"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cSenior Mod" to player
- send "&c&l[RANK] &rYour rank has been updated to &cSenior Mod &rby &c%player%" to argument 1
- else if argument 2 is "mod":
- set {player::%arg-1's uuid%::rank} to "Mod"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&e&lMOD&8] &e"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cMod" to player
- send "&c&l[RANK] &rYour rank has been updated to &cMod &rby &c%player%" to argument 1
- else if argument 2 is "junior mod" or "jrmod":
- set {player::%arg-1's uuid%::rank} to "Junior Mod"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&9&lJR.MOD&8] &9"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cJunior Mod" to player
- send "&c&l[RANK] &rYour rank has been updated to &cJunior Mod &rby &c%player%" to argument 1
- else if argument 2 is "builder":
- set {player::%arg-1's uuid%::rank} to "Builder"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&a&lBUILDER&8] &a"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cBuilder" to player
- send "&c&l[RANK] &rYour rank has been updated to &cBuilder &rby &c%player%" to argument 1
- else if argument 2 is "none" or "default":
- set {player::%arg-1's uuid%::rank} to "None"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&7&lMEMBER&8] &7"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cNone" to player
- send "&c&l[RANK] &rYour rank has been updated to &cNone &rby &c%player%" to argument 1
- on first join:
- make console execute "rank %player% none"
- on chat:
- cancel event
- set tab list name of player to "%{player::%player's uuid%::rank::prefix}%%player%"
- broadcast "%{player::%player's uuid%::rank::prefix}%%player% &7» %message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement