Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rank <offline player> <text>:
- permission: server.*
- permission message: &eHy&6Factions&7> &cYou cannot access our ranking system.
- trigger:
- arg 2 = "owner":
- player = "AsgerHeinricy":
- set {rank::%arg 1's uuid%} to "&8[&cOwner&8]"
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to owner"
- op arg-1
- send "&eHy&6Factions&7> &aYour has been set to owner." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- arg 2 = "co-owner":
- player = "AsgerHeinricy":
- set {rank::%arg 1's uuid%} to "&8[&cCo-Owner&8]"
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to coowner"
- op arg-1
- send "&eHy&6Factions&7> &aYour Rank has been set to coowner." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- arg 2 = "dev":
- if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]":
- set {rank::%arg 1's uuid%} to "&8[&bDeveloper&8]"
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to developer"
- op arg-1
- send "&eHy&6Factions&7> &aYour Rank has been set to developer." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- arg 2 = "admin":
- if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]":
- set {rank::%arg 1's uuid%} to "&8[&4Admin&8]"
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to admin"
- send "&eHy&6Factions&7> &aYour Rank has been set to admin." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- arg 2 = "mod":
- if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
- set {rank::%arg 1's uuid%} to "&8[&3Moderator&8]"
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Moderator"
- execute console command "manuadd %arg-1% Moderator"
- send "&eHy&6Factions&7> &aYour Rank has been set to Moderator." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- arg 2 = "helper":
- if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
- set {rank::%arg 1's uuid%} to "&8[&9Helper&8]"
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Helper"
- execute console command "manuadd %arg-1% Helper"
- send "&eHy&6Factions&7> &aYour Rank has been set to Helper." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- arg 2 = "builder":
- if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
- set {rank::%arg 1's uuid%} to "&8[&2Builder8]"
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Builder"
- execute console command "manuadd %arg-1% Builder"
- send "&eHy&6Factions&7> &aYour Rank has been set to Builder." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- arg 2 = "vip":
- if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
- set {rank::%arg 1's uuid%} to "&8[&aVip&8]"
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Vip"
- execute console command "manuadd %arg-1% VIP"
- send "&eHy&6Factions&7> &aYour Rank has been set to Vip." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- if arg 2 is "default" or "normal" or "reset" or "member":
- if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
- set {rank::%arg 1's uuid%} to ""
- send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Default"
- execute console command "manuadd %arg-1% Helper"
- send "&eHy&6Factions&7> &aYour Rank has been set to Default." to arg-1
- else:
- send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
- on chat:
- if {rank::%player's uuid%} is not set:
- set {rank::%player's uuid%} to ""
- set chat format to "%{rank::%player's uuid%}% &7%player% &8| &7%message%"
- set player's tablst name to "%{rank::%player's uuid%}% &7%player%"
- set player's display name to "%{rank::%player's uuid%}% &7%player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement