Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- if {rankdis::%player's uuid%} is not set:
- set {rankdis::%player's uuid%} to "&7"
- on join:
- if {rankdis::%player's uuid%} is not set:
- set {rankdis::%player's uuid%} to "&7"
- command /rank [<text>] [<offline player>] [<text>]:
- permission: rank.srmod
- permission message: &2&l* &aError &8| &7You do not have the rank &e[SR.MOD] &7to execute this command.
- trigger:
- if arg 1 is not set:
- send " "
- send " &2&l* &aRuin Rank Management"
- send " &7Made by &aCriticyl"
- send " "
- send "&2&l* &a/rank set (player) (rank) &7sets a player's rank."
- send "&2&l* &a/rank promote (player) &7Promotes the player."
- send "&2&l* &a/rank reset (player) &7reset a player's rank."
- send "&2&l* &a/rank list &7Displays the rank list."
- send " "
- else if arg 1 is "set":
- if arg 2 is not set:
- send "&2&l* &aRank &8| &7Incorrect Usage: &a/rank set <player> <rank>"
- else:
- if arg 3 is not set:
- send "&2&l* &aRank &8| &7Incorrect Usage: &a/rank set <player> <rank>"
- else if arg 3 is "Manager" or "Manager":
- if player is not "Meloens":
- send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
- else:
- set {rank::%arg 2's uuid%} to "&c[MANAGER] &c"
- make console execute "/lp user %arg 2% parent set manager"
- send " " to arg 2
- send "&2&l* &aRank &8| &7Your rank has been updated to &c[Manager] &7by &a%player%" to arg 2
- send " " to arg 2
- send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &c[Manager]"
- else if arg 3 is "DEV" or "DEV":
- if player is not "Meloens":
- send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
- else:
- set {rank::%arg 2's uuid%} to "&c[DEV] &c"
- make console execute "/lp user %arg 2% parent set dev"
- send " " to arg 2
- send "&2&l* &aRank &8| &7Your rank has been updated to &c[DEV] &7by &a%player%" to arg 2
- send " " to arg 2
- send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &c[DEV]"
- else if arg 3 is "Admin" or "Admin":
- if player is not "Meloens":
- send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
- else:
- set {rank::%arg 2's uuid%} to "&c[ADMIN] &c"
- make console execute "/lp user %arg 2% parent set admin"
- send " " to arg 2
- send "&2&l* &aRank &8| &7Your rank has been updated to &c[ADMIN] &7by &a%player%" to arg 2
- send " " to arg 2
- send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &c[ADMIN]"
- else if arg 3 is "Sr.Mod" or "Sr.Mod":
- if player is not "Meloens":
- send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
- else:
- set {rank::%arg 2's uuid%} to "&e[SR.MOD] &e"
- make console execute "/lp user %arg 2% parent set sr.mod"
- send " " to arg 2
- send "&2&l* &aRank &8| &7Your rank has been updated to &e[SR.MOD] &7by &a%player%" to arg 2
- send " " to arg 2
- send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &e[SR.MOD]"
- else if arg 3 is "Mod" or "Mod":
- if player is not "Meloens":
- send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
- else:
- set {rank::%arg 2's uuid%} to "&e[MOD] &e"
- make console execute "/lp user %arg 2% parent set mod"
- send " " to arg 2
- send "&2&l* &aRank &8| &7Your rank has been updated to &e[MOD] &7by &a%player%" to arg 2
- send " " to arg 2
- send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &e[MOD]"
- else if arg 3 is "Jr.Mod" or "Jr.Mod":
- if player is not "Meloens":
- send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
- else:
- set {rank::%arg 2's uuid%} to "&e[JR.MOD] &e"
- make console execute "/lp user %arg 2% parent set jr.mod"
- send " " to arg 2
- send "&2&l* &aRank &8| &7Your rank has been updated to &e[JR.MOD] &7by &a%player%" to arg 2
- send " " to arg 2
- send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &e[JR.MOD]"
- else if arg 3 is "Builder" or "Builder":
- if player is not "Meloens":
- send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
- else:
- set {rank::%arg 2's uuid%} to "&d[BUILDER] &d"
- make console execute "/lp user %arg 2% parent set builder"
- send " " to arg 2
- send "&2&l* &aRank &8| &7Your rank has been updated to &d[BUILDER] &7by &a%player%" to arg 2
- send " " to arg 2
- send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &d[BUILDER]"
- else if arg 3 is "content" or "content":
- if player is not "Meloens":
- send "&a&l* &2Ranks &8| &7You do not have permission to set a player to this rank."
- else:
- set {rank::%arg 2's uuid%} to "&3[CONTENT] &3"
- make console execute "/lp user %arg 2% parent set content"
- send " " to arg 2
- send "&2&l* &aRank &8| &7Your rank has been updated to &3[CONTENT] &7by &a%player%" to arg 2
- send " " to arg 2
- send "&2&l* &aRank &8| &7Updated &a%arg 2%'s &7&orank to &3[CONTENT]"
- command /ranklist [<text>]:
- trigger:
- set {_staff::*} to all players where [input has the permission "is.staff"]
- size of {_staff::*} = 0:
- send "n/a"
- else:
- loop {_staff::*}:
- add loop-value to {_r::%loop-value's prefix%::*}
- loop {_r::&c [MANAGER]::*}:
- send "%loop-value%"
- loop {_r::&c [DEV]::*}:
- send "%loop-value%"
- loop {_r::&c [ADMIN]::*}:
- send "%loop-value%"
- loop {_r::&e [SR.MOD]::*}:
- send "%loop-value%"
- loop {_r::&e [MOD]::*}:
- send "%loop-value%"
- loop {_r::&e [JR.MOD]::*}:
- send "%loop-value%"
- loop {_r::&d [BUILDER]::*}:
- send "%loop-value%"
- loop {_r::&3 [CONTENT]::*}:
- send "%loop-value%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement