SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /rank <offline player> <text>:
  2.   permission: server.*
  3.   permission message: &eHy&6Factions&7> &cYou cannot access our ranking system.
  4.   trigger:
  5.     arg 2 = "owner":
  6.       player = "AsgerHeinricy":
  7.         set {rank::%arg 1's uuid%} to "&8[&cOwner&8]"
  8.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to owner"
  9.         op arg-1
  10.         send "&eHy&6Factions&7> &aYour has been set to owner." to arg-1
  11.       else:
  12.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  13.     arg 2 = "co-owner":
  14.       player = "AsgerHeinricy":
  15.         set {rank::%arg 1's uuid%} to "&8[&cCo-Owner&8]"
  16.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to coowner"
  17.         op arg-1
  18.         send "&eHy&6Factions&7> &aYour Rank has been set to coowner." to arg-1
  19.       else:
  20.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  21.     arg 2 = "dev":
  22.       if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]":
  23.         set {rank::%arg 1's uuid%} to "&8[&bDeveloper&8]"
  24.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to developer"
  25.         op arg-1
  26.         send "&eHy&6Factions&7> &aYour Rank has been set to developer." to arg-1
  27.       else:
  28.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  29.     arg 2 = "admin":
  30.       if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]":
  31.         set {rank::%arg 1's uuid%} to "&8[&4Admin&8]"
  32.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to admin"
  33.         send "&eHy&6Factions&7> &aYour Rank has been set to admin." to arg-1
  34.       else:
  35.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  36.     arg 2 = "mod":
  37.       if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
  38.         set {rank::%arg 1's uuid%} to "&8[&3Moderator&8]"
  39.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Moderator"
  40.         execute console command "manuadd %arg-1% Moderator"
  41.         send "&eHy&6Factions&7> &aYour Rank has been set to Moderator." to arg-1
  42.       else:
  43.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  44.     arg 2 = "helper":
  45.       if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
  46.         set {rank::%arg 1's uuid%} to "&8[&9Helper&8]"
  47.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Helper"
  48.         execute console command "manuadd %arg-1% Helper"
  49.         send "&eHy&6Factions&7> &aYour Rank has been set to Helper." to arg-1
  50.       else:
  51.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  52.     arg 2 = "builder":
  53.       if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
  54.         set {rank::%arg 1's uuid%} to "&8[&2Builder8]"
  55.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Builder"
  56.         execute console command "manuadd %arg-1% Builder"
  57.         send "&eHy&6Factions&7> &aYour Rank has been set to Builder." to arg-1
  58.       else:
  59.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  60.     arg 2 = "vip":
  61.       if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
  62.         set {rank::%arg 1's uuid%} to "&8[&aVip&8]"
  63.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Vip"
  64.         execute console command "manuadd %arg-1% VIP"
  65.         send "&eHy&6Factions&7> &aYour Rank has been set to Vip." to arg-1
  66.       else:
  67.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  68.     if arg 2 is "default" or "normal" or "reset" or "member":
  69.       if {rank::%player's uuid%} is "&8[&cOwner&8]" or "&8[&cCo-Owner&8]" or "&8[&bDeveloper&8]" or "&8[&4Admin&8]":
  70.         set {rank::%arg 1's uuid%} to ""
  71.         send "&eHy&6Factions&7> &aYou've set %arg-1% rank to Default"
  72.         execute console command "manuadd %arg-1% Helper"
  73.         send "&eHy&6Factions&7> &aYour Rank has been set to Default." to arg-1
  74.       else:
  75.         send "&eHy&6Factions&7> &cYou don't have the required permission to use this command."
  76.  
  77.  
  78. on chat:
  79.   if {rank::%player's uuid%} is not set:
  80.     set {rank::%player's uuid%} to ""
  81.   set chat format to "%{rank::%player's uuid%}% &7%player% &8| &7%message%"
  82.   set player's tablst name to "%{rank::%player's uuid%}% &7%player%"
  83.   set player's display name to "%{rank::%player's uuid%}% &7%player%"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top