Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rank [<offline player>] [<text>]:
- permission: Riot.rank
- permission message: &cYou don't have permission to execute this command!
- trigger:
- if arg-1 is set:
- if arg-2 isn't set:
- open chest with 5 rows named "&8Rank Selection (&n%arg-1%)" to player
- format slot 4 of player with arg-1's skull named "&3&lModifying %arg-1%" with lore "||&bCurrent Rank||&r &r● &r%{shortrank.%arg-1's uuid%}%" to be unstealable
- format slot 19 of player with book and quill named "&3&lRanks" with lore "" to be unstealable
- format slot 19 of player with book named "&4Host" with lore "||&rRemove all permissions and change||&rrank to host." to close then run [make player execute "¶rank %arg-1% host"]
- format slot 20 of player with book named "&4Admin" with lore "||&rRemove all permissions and change||&rrank to administrator." to close then run [make player execute "¶rank %arg-1% admin"]
- format slot 21 of player with book named "&dManager" with lore "||&rRemove all permissions and change||&rrank to manager." to close then run [make player execute "¶rank %arg-1% manager"]
- format slot 22 of player with book named "&6Senior Mod" with lore "||&rRemove all permissions and change||&rrank to senior moderator." to close then run [make player execute "¶rank %arg-1% srmod"]
- format slot 23 of player with book named "&eMod" with lore "||&rRemove all permissions and change||&rrank to moderator." to close then run [make player execute "¶rank %arg-1% mod"]
- format slot 24 of player with book named "&eJunior Mod" with lore "||&rRemove all permissions and change||&rrank to junior moderator." to close then run [make player execute "¶rank %arg-1% jrmod"]
- format slot 25 of player with book named "&aBuild Team" with lore "||&rRemove all permissions and change||&rrank to build team." to close then run [make player execute "¶rank %arg-1% bt"]
- format slot 29 of player with book named "&bRiot" with lore "||&rRemove all permissions and change||&rrank to Riot." to close then run [make player execute "¶rank %player% Riot"]
- format slot 30 of player with book named "&5Medic" with lore "||&rRemove all permissions and change||&rrank to medic." to close then run [make player execute "¶rank %player% medic"]
- format slot 31 of player with book named "&5Amethyst" with lore "||&rRemove all permissions and change||&rrank to amethyst." to close then run [make player execute "¶rank %player% amethyst"]
- format slot 32 of player with book named "&6Gold" with lore "||&rRemove all permissions and change||&rrank to gold." to close then run [make player execute "¶rank %player% gold"]
- format slot 33 of player with book named "&rSilver" with lore "||&rRemove all permissions and change||&rrank to silver." to close then run [make player execute "¶rank %player% silver"]
- format slot 40 of player with book named "&7User" with lore "||&rRemove all permissions and change||&rrank to user." to close then run [make player execute "¶rank %player% user"]
- if arg-2 is set:
- if arg-2 is "admin":
- make player execute "¶rank %arg-1% admin"
- if arg-2 is "manager":
- make player execute "¶rank %arg-1% manager"
- if arg-2 is "host":
- make player execute "¶rank %arg-1% host"
- if arg-2 is "seniormod", "srmod" or "smod":
- make player execute "¶rank %arg-1% srmod"
- if arg-2 is "mod":
- make player execute "¶rank %arg-1% mod"
- if arg-2 is "juniormod", "jrmod" or "jmod":
- make player execute "¶rank %arg-1% jrmod"
- if arg-2 is "buildteam","bt" or "builder":
- make player execute "¶rank %arg-1% bt"
- if arg-2 is "Riot":
- make player execute "¶rank %arg-1% Riot"
- if arg-2 is "medic":
- make player execute "¶rank %arg-1% medic"
- if arg-2 is "amethyst":
- make player execute "¶rank %arg-1% amethyst"
- if arg-2 is "gold":
- make player execute "¶rank %arg-1% gold"
- if arg-2 is "silver":
- make player execute "¶rank %arg-1% silver"
- if arg-2 is "bronze":
- make player execute "¶rank %arg-1% bronze"
- if arg-2 is "user", "member", "none" or "reset":
- make player execute "¶rank %arg-1% user"
- else if arg-1 isn't set:
- message "&cIncorrect Usage Format: <Required> [Optional]"
- message "&cIncorrect usage, &n/rank <player> [rank]"
- on first join:
- set {rating.%player's uuid%} to 0
- set {kills.%player's uuid%} to 0
- set {deaths.%player's uuid%} to 0
- set {coins.%player's uuid%} to 100
- make console execute "¶rank %player% user"
- on chat:
- cancel event
- set tab list name of player to "%{rank.%player's uuid%}%%player%"
- broadcast "&7(%{rating.%player's uuid%}%&7) %{rank.%player's uuid%}%%player% &7%message%"
- command /Riot:sidebar:
- trigger:
- stop
- command /¶rank [<offline player>] [<text>]:
- permission: Riot.rank
- permission message: &cYou don't have permission to execute this command!
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- if arg-2 is "admin":
- set {displayrank.%arg-1's uuid%} to "&rAdmin"
- set {rank.%arg-1's uuid%} to "&7[&4Admin&7] &4"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rAdministrator" to player
- message "&7[&b&l*&7] Rank updated to &rAdministrator" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "manager":
- set {displayrank.%arg-1's uuid%} to "&rManager"
- set {rank.%arg-1's uuid%} to "&7[&bManager&7] &b"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rManager" to player
- message "&7[&b&l*&7] Rank updated to &rManager" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "host":
- set {displayrank.%arg-1's uuid%} to "&rHost"
- set {rank.%arg-1's uuid%} to "&7[&4Host&7] &4"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rHost" to player
- message "&7[&b&l*&7] Rank updated to &rHost" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "srmod":
- set {displayrank.%arg-1's uuid%} to "&rSenior Mod"
- set {rank.%arg-1's uuid%} to "&7[&6Senior Mod&7] &6"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rSenior Mod" to player
- message "&7[&b&l*&7] Rank updated to &rSenior Mod" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "mod":
- set {displayrank.%arg-1's uuid%} to "&rMod"
- set {rank.%arg-1's uuid%} to "&7[&eMod&7] &e"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod" to player
- message "&7[&b&l*&7] Rank updated to &rMod" to arg-1
- make arg-1 execute "riot:sidebar"
- if arg-2 is "jrmod":
- set {displayrank.%arg-1's uuid%} to "&rJunior Mod"
- set {rank.%arg-1's uuid%} to "&7[&eJunior Mod&7] &e"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rJunior Mod" to player
- message "&7[&b&l*&7] Rank updated to &rJunior Mod" to arg-1
- make arg-1 execute "riot:sidebar"
- if arg-2 is "bt":
- set {displayrank.%arg-1's uuid%} to "&rBuilder"
- set {rank.%arg-1's uuid%} to "&7[&aBuilder&7] &a"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rBuilder" to player
- message "&7[&b&l*&7] Rank updated to &rBuilder" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "Riot":
- set {displayrank.%arg-1's uuid%} to "&rRiot"
- set {rank.%arg-1's uuid%} to "&7[&b&lRiot&7] &b"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rRiot" to player
- message "&7[&b&l*&7] Rank updated to &rRiot" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "medic":
- set {displayrank.%arg-1's uuid%} to "&rMedic"
- set {rank.%arg-1's uuid%} to "&7[&9Medic&7] &9"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMedic" to player
- message "&7[&b&l*&7] Rank updated to &rMedic" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "amethyst":
- set {displayrank.%arg-1's uuid%} to "&rAmethyst"
- set {rank.%arg-1's uuid%} to "&7[&5Amethyst&7] &e"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rAmethyst" to player
- message "&7[&b&l*&7] Rank updated to &rAmethyst" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "gold":
- set {displayrank.%arg-1's uuid%} to "&rGold"
- set {rank.%arg-1's uuid%} to "&7[&6Gold&7] &e"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rGold" to player
- message "&7[&b&l*&7] Rank updated to &rGold" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "silver":
- set {displayrank.%arg-1's uuid%} to "&rSilver"
- set {rank.%arg-1's uuid%} to "&r&l"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rSilver" to player
- message "&7[&b&l*&7] Rank updated to &rSilver" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "bronze":
- set {displayrank.%arg-1's uuid%} to "&rBronze"
- set {rank.%arg-1's uuid%} to "&7&l"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rBronze" to player
- message "&7[&b&l*&7] Rank updated to &rBronze" to arg-1
- make arg-1 execute "Riot:sidebar"
- if arg-2 is "user":
- set {displayrank.%arg-1's uuid%} to "&rNone"
- set {rank.%arg-1's uuid%} to "&7"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rUser" to player
- message "&7[&b&l*&7] Rank updated to &rUser" to arg-1
- make arg-1 execute "Riot:sidebar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement