BrotherBethuel Posted September 16, 2023 Share Posted September 16, 2023 (edited) command /ogrank <text> [<player>]: permission: op trigger: if arg-1 is "add": if arg-2 is set: if {ogrank::*} contains arg-2's uuid: send "this player already has [OG]" else: add arg-2's uuid to {ogrank::*} add arg-2 to {ogranklist::*} send "granted %arg-2% &7[OG]&r rank!" send "you have gotten &7[OG]&r rank!" to arg-2 if arg-1 is "remove": if arg-2 is set: if {ogrank::*} contains arg-2's uuid: remove arg-2's uuid from {ogrank::*} remove arg-2 from {ogranklist::*} send "revoked %arg-2%'s &7[OG]&r rank" else: send "this player already doesn't have &7[OG]&r rank!" if arg-1 is "list": send "people who have og: %{ogranklist::*}%" on chat: if player is op: if {ogrank::*} contains player's uuid: set the chat format to "&7[OG]&r &a&l[OP]&r &4%player%&r: %message%" else: set the chat format to "&a&l[OP]&r &4%player%&r %message%" else: if {ogrank::*} contains player's uuid: set the chat format to "&7[OG]&r &7%player%&r: %message%" else: set the chat format to "&7&lMember&r &7%player%: %message%" Edited September 16, 2023 by BrotherBethuel errors yk Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now