Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- per: &9Permissions> &7
- rank: &9Ranks> &7
- error: &9Error> &7
- command /setrank [<text>] [<offlineplayer>]:
- trigger:
- if {rank::%uuid of player%} is "owner":
- if arg-1 is not set:
- message "&9/setrank <Rank> <Player> &7Set player's rank"
- if arg-1 is set:
- if arg-1 is "owner":
- if arg-2 is not set:
- message "{@rank}You changed &e%player%&7's rank to [&4&lOWNER&7]"
- message "{@rank}You ranked as [&4&lOWNER&7] by &e%player%"
- set {rank::%uuid of player%} to "owner"
- if arg-2 is set:
- if arg-2 is online:
- message "{@rank}You changed &e%arg-2%&7's rank to [&4&lOWNER&7]"
- send "{@rank}You ranked as [&4&lOWNER&7] by &e%player%" to arg-2
- set {rank::%uuid of arg-2%} to "owner"
- else:
- message "{@error}%arg-2% is offline"
- if arg-1 is "admin":
- if arg-2 is not set:
- message "{@rank}You changed &e%player%&7's rank to [&c&lADMIN&7]"
- message "{@rank}You ranked as [&c&lADMIN&7] by &e%player%"
- set {rank::%uuid of player%} to "admin"
- if arg-2 is set:
- if arg-2 is online:
- message "{@rank}You changed &e%arg-2%&7's rank to [&c&lADMIN&7]"
- send "{@rank}You ranked as [&c&lADMIN&7] by &e%player%" to arg-2
- set {rank::%uuid of arg-2%} to "admin"
- else:
- message "{@error}%arg-2% is offline"
- if arg-1 is "mod":
- if arg-2 is not set:
- message "{@rank}You changed &e%player%&7's rank to [&6&lMOD&7]"
- message "{@rank}You ranked as [&6&lMOD&7] by &e%player%"
- set {rank::%uuid of player%} to "mod"
- if arg-2 is set:
- if arg-2 is online:
- message "{@rank}You changed &e%arg-2%&7's rank to [&6&lMOD&7]"
- send "{@rank}You ranked as [&6&lMOD&7] by &e%player%" to arg-2
- set {rank::%uuid of arg-2%} to "mod"
- else:
- message "{@error}%arg-2% is offline"
- else:
- message "{@per}This requires Permission Rank [&4&lOWNER&7]"
- on command:
- if command is "skript" or "sk":
- if player is "Koooookey":
- stop
- else:
- cancel event
- message "{@per}This requires Permission Rank [&4&lOWNER&7]"
- command /sban [<offlineplayer>] [<text>]:
- trigger:
- if {rank::%uuid of player%} is "owner" or "admin":
- if arg-1 is not set:
- message "&9/ban <Player> <Reason> &7Ban the player"
- if arg-1 is set:
- if arg-2 is not set:
- message "&9/ban <Player> <Reason> &7Ban the player"
- if arg-2 is set:
- if {rank::%uuid of arg-1%} is "owner" or "admin":
- message "{@error}You can't ban the %arg-1%"
- else:
- execute console command "ban %arg-1% %arg-2%"
- else:
- message "{@per}This requires Permission Rank [&c&lADMIN&7]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement