Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rank [<offline player>]:
- permission: server.rank
- trigger:
- if arg-1 is not set:
- send "&cInvalid usage!"
- else if arg-1 is set:
- open chest with 5 rows named "&8Rank Selection &8(&n%arg-1%)" to player
- format slot 4 of player with arg-1's skull named "&bModifying %arg-1%" with lore "||&rIn this GUI you can modify||&r%arg-1%'s rank.||||&bCurrent Rank||&r &r● &r%{shortrank.%arg-1%}%" to be unstealable
- format slot 22 of player with paper named "&bRanks" to be unstealable
- format slot 29 of player with book named "&cAdmin" with lore "||&rClick to change %arg-1%'s rank||&rto owner." to close then run [make player execute "¶rank %arg-1% admin"]
- format slot 30 of player with book named "&2Moderator" with lore "||&rClick to change %arg-1%'s rank||&rto moderator." to close then run [make player execute "¶rank %arg-1% mod"]
- format slot 31 of player with book named "&9Helper" with lore "||&rClick to change %arg-1%'s rank||&rto helper." to close then run [make player execute "¶rank %arg-1% helper"]
- format slot 32 of player with book named "&6Youtuber" with lore "||&rClick to change %arg-1%'s rank||&rto youtuber." to close then run [make player execute "¶rank %arg-1% yt"]
- format slot 33 of player with book named "&3Build Team" with lore "||&rClick to change %arg-1%'s rank||&rto build team." to close then run [make player execute "¶rank %arg-1% bt"]
- format slot 40 of player with book named "&7User" with lore "||&rClick to change %arg-1%'s rank||&rto user." to close then run [make player execute "¶rank %arg-1% user"]
- on chat:
- cancel event
- set tab list name of player to "%{rank.%player's uuid%}%%player%"
- broadcast "%{rank.%player's uuid%}%%player% &7» &7%message%"
- command /¶rank [<offline player>] [<text>]:
- permission: haste.rank
- trigger:
- if arg-1 isn't set:
- message "&cIncorrect usage."
- if arg-1 is set:
- if arg-2 is "admin":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&c[ADMIN] &C"
- set {shortrank.%arg-1's uuid%} to "&rAdministrator"
- set tab list name of arg 1 to "&c[ADMIN] &C%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bAdmin &eprevious rank removed."
- send "&eYour server rank has been set to &bAdmin&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "yt":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&6[YT] &6"
- set {shortrank.%arg-1's uuid%} to "&rYoutuber"
- set tab list name of arg 1 to "&6[YT] &6%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bYoutuber &eprevious rank removed."
- send "&eYour server rank has been set to &bYoutuber&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "mod":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&2[MOD] &2"
- set {shortrank.%arg-1's uuid%} to "&rModerator"
- set tab list name of arg 1 to "&2[MOD] &2%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bMod &eprevious rank removed."
- send "&eYour server rank has been set to &bMod&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "helper":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&9[HELPER] &9"
- set {shortrank.%arg-1's uuid%} to "&rHelper"
- set tab list name of arg 1 to "&9[HELPER] &9%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bHelper &eprevious rank removed."
- send "&eYour server rank has been set to &bHelper&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "user":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&7"
- set {shortrank.%arg-1's uuid%} to "&rUser"
- set tab list name of arg 1 to "&7%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bUser &eprevious rank removed."
- send "&eYour server rank has been set to &bUser&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "bt":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&3[BUILD TEAM] &3"
- set {shortrank.%arg-1's uuid%} to "&rBuild Team"
- set tab list name of arg 1 to "&3[BUILD TEAM] &3%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bBuild Team &eprevious rank removed."
- send "&eYour server rank has been set to &bBuild Team&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- on first join:
- set {rank.%player's uuid%} to "&7"
- set {shortrank.%player's uuid%} to "&rUser"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement