SHARE
TWEET

Untitled

a guest Jun 19th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     staff_chat_colour: &c
  3.  
  4. load:
  5.     set {serverranks::*} to "Owner", "Developer", "Admin", "SeniorMod", "Mod", "Helper", "Builder", "User"
  6.  
  7.     set {serverranks::Owner::prefix} to "&4&lOwner"
  8.     set {serverranks::Developer::prefix} to "&c&lDev"
  9.     set {serverranks::Admin::prefix} to "&c&lAdmin"
  10.     set {serverranks::SeniorMod::prefix} to "&6&lSrMod"
  11.     set {serverranks::Mod::prefix} to "&9&lMod"
  12.     set {serverranks::Helper::prefix} to "&a&lHelper"
  13.     set {serverranks::Builder::prefix} to "&b&lBuilder"
  14.     set {serverranks::User::prefix} to "&7User"
  15.  
  16. chat:
  17.     {player::%player's uuid%::rank} = "User":
  18.         set chat format to "&8[%{serverranks::User::prefix}%&8] &7%player% &8» &r%uncoloured message%"
  19.     else:
  20.         loop {serverranks::*}:
  21.             {player::%player's uuid%::rank} = loop-value:
  22.                 set chat format to "&8[%{serverranks::%loop-value%::prefix}%&8] &7%player% &8» {@staff_chat_colour}%coloured message%"
  23.  
  24. first join:
  25.     set {player::%player's uuid%::rank} to "User"
  26.  
  27. command /rank [<offlineplayer>] [<string>]:
  28.     permission: perm.updaterank
  29.     permission message: &cInsufficient Permission.
  30.     trigger:
  31.         arg-1 is set:
  32.             arg-1 = "list":
  33.                 send "&9&lClient Manager &9» &rCurrent Ranks (%size of {serverranks::*}% groups)"
  34.                 send ""
  35.                 send "%{serverranks::*}%"
  36.                 send ""
  37.             else:
  38.                 {serverranks::*} contains arg-2:
  39.                     set {player::%arg-1's uuid%::rank} to arg-2
  40.                     send "&9&lClient Manager &9» &r%arg-1%'s rank has been updated to %arg-2%"
  41.                     send "&9&lClient Manager &9» &rYour rank has been updated to &7%arg-2%&r by &7%player%" to arg-1
  42.                     command "/pex user %arg-1% group set %arg-2%"
  43.                 else:
  44.                     send "&c&l[!] &c%arg-2% isn't a rank!"
  45.  
  46.         else:
  47.             send "&c&l[!] &cPlease use: /rank <list/playername> <rankname>"
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