Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {firstjoined::%player's uuid%} is not set:
- set {rank::%player's uuid%} to "Default"
- set {namecolor::%player's uuid%} to "&8"
- set {chatcolor::%player's uuid%} to "&7"
- set {firstjoined::%player's uuid%} to false
- set {rankcolor::%player's uuid%} to "&7"
- stop
- command /chatmute:
- permission: chat.mute
- trigger:
- if {chatmute} is not set:
- set {chatmute} to true
- broadcast "&4&lCHATMUTE &cThe chat got muted by &e%player%&c!"
- stop
- if {chatmute} is false:
- set {chatmute} to true
- broadcast "&4&lCHATMUTE &cThe chat got muted by &e%player%&c!"
- stop
- if {chatmute} is true:
- set {chatmute} to false
- broadcast "&4&lCHATMUTE &cThe chat got unmuted by &e%player%&c!"
- stop
- on chat:
- if {chatmute} is false:
- set chat format to "&8[%{rank::%player's uuid%}%&8] %{namecolor::%player's uuid%}%%player%: %{chatcolor::%player's uuid%}%%message%"
- if {chatmute} is not set:
- set chat format to "&8[%{rank::%player's uuid%}%&8] %{namecolor::%player's uuid%}%%player%: %{chatcolor::%player's uuid%}%%message%"
- if {chatmute} is true:
- if player has the permission "chatmute.talk":
- set chat format to "&8[%{rank::%player's uuid%}%&8] %{namecolor::%player's uuid%}%%player%: %{chatcolor::%player's uuid%}%%message%"
- else:
- cancel event
- message "&4&lCHATMUTE &cThe chat is muted!"
- command /setrank <player> <text>:
- permission: rank.set
- trigger:
- if arg-1 and arg-2 is not set:
- message "&cUse /setrank <player> <rank>"
- message "&cRanks list:"
- message "&4Owner"
- message "&aBuilder"
- message "&bDeveloper"
- message "&9Admin"
- message "&7Default"
- if arg-1 and arg-2 is set:
- if arg-2 is "Owner":
- set {rank::%arg-1's uuid%} to "&4Owner"
- if arg-2 is "Builder":
- set {rank::%arg-1's uuid%} to "&aBuilder"
- if arg-2 is "Developer":
- set {rank::%arg-1's uuid%} to "&bDeveloper"
- if arg-2 is "Moderator":
- set {rank::%arg-1's uuid%} to "&cModerator"
- if arg-2 is "Admin":
- set {rank::%arg-1's uuid%} to "&9Admin"
- if arg-2 is "Default":
- set {rank::%arg-1's uuid%} to "&7Default"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement