Advertisement
Guest User

Rank Skript Updated #1

a guest
Jun 19th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 12.40 KB | None | 0 0
  1. on chat:
  2.     if {Color::%player's uuid%} is set:
  3.        set chat format to "&6[%player's level%&6]&r &7%player's nickname% %{Rank::%player's uuid%}%&8: %{Color::%player's uuid%}%%message%"
  4.        stop
  5.    else if {Color::%player's uuid%} is not set:
  6.         if {Rank::%player's uuid%} is not "&6&oHost" or "&6&oCo-Host" or "&c&oManager" or "&c&oAdmin":
  7.            set chat format to "&6[%player's level%]&r &7%player's nickname% %{Rank::%player's uuid%}%&8: &7%message%"
  8.        else if {Rank::%player's uuid%} is "&6&oHost" or "&6&oCo-Host" or "&c&oManager" or "&c&oAdmin":
  9.            set chat format to "&6[%player's level%]&r &f&l%player's nickname% %{Rank::%player's uuid%}%&8: &f%message%"
  10.  
  11.  
  12. command /rank [<text>] [<player>] [<text>]:
  13.    trigger:
  14.        if player doesn't have permission "command.rank":
  15.             send ""
  16.             send "&4&lERROR"
  17.             send ""
  18.             send "&cYou do not have permission to use this command!"
  19.             send ""
  20.             stop
  21.         if arg-1 is "help" or "?":
  22.             send ""
  23.             send "        &6&lRANKS"
  24.             send ""
  25.             send "/rank <help/?>"
  26.             send "/rank set <player> <rank>"
  27.             send "/rank list"
  28.             send ""
  29.             stop
  30.         if arg-1 is not set:
  31.             send ""
  32.             send "        &6&lRANKS"
  33.             send ""
  34.             send "/rank <help/?>"
  35.             send "/rank set <player> <rank>"
  36.             send "/rank list"
  37.             send ""
  38.             stop
  39.         if arg-1 is "list":
  40.             send "&6&oHost &8- &fHost"
  41.             send "&6&oCo-Host &8- &fCo-Host"
  42.             send "&c&oManager &8- &fManager"
  43.             send "&c&oAdmin &8- &fAdmin"
  44.             send "&e&oSrMod &8- &fSrMod"
  45.             send "&e&oMod &8- &fMod"
  46.             send "&e&oJrMod &8- &fJrMod"
  47.             send "&d&oBuilder &8- &fBuilder"
  48.             send "&6✧✧ &8- &fLEGEND"
  49.             send "&6✧ &8- &fVIP"
  50.             send "&7 &8- &fDefault"
  51.  
  52.         if arg-1 is "Set":
  53.             if arg-2 is set:
  54.                 if arg-3 is "Host" or "Owner":
  55.                     if player is "PeaceSteveOfLife":
  56.                         send "" to player
  57.                         send "You set &e%arg-2%&f's rank to &eHost" to player
  58.                         send "" to player
  59.                         send "" to arg-2
  60.                         send "Your rank was set to &eHost" to arg-2
  61.                         send "" to arg-2
  62.                         set {Rank::%arg-2's uuid%} to "&6&oHost"
  63.                        stop
  64.                    else if player is not "PeaceSteveOfLife":
  65.                        send ""
  66.                        send "&4&lERROR"
  67.                        send ""
  68.                        send "&cYou do not have permission to use this command!"
  69.                        send ""
  70.                        stop
  71.                if arg-3 is "Co-Host" or "CoHost":
  72.                    if player is "PeaceSteveOfLife":
  73.                        send "" to player
  74.                        send "You set &e%arg-2%&f's rank to &eCo-Host" to player
  75.                        send "" to player
  76.                        send "" to arg-2
  77.                        send "Your rank was set to &eCo-Host" to arg-2
  78.                        send "" to arg-2
  79.                        set {Rank::%arg-2's uuid%} to "&6&oCo-Host"
  80.                        stop
  81.                    else if player is not "PeaceSteveOfLife":
  82.                        send ""
  83.                        send "&4&lERROR"
  84.                        send ""
  85.                        send "&cYou do not have permission to use this command!"
  86.                        send ""
  87.                        stop
  88.                if arg-3 is "Manager":
  89.                    if player is "PeaceSteveOfLife":
  90.                        send "" to player
  91.                        send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  92.                        send "" to player
  93.                        send "" to arg-2
  94.                        send "Your rank was set to &e%arg-3%" to arg-2
  95.                        send "" to arg-2
  96.                        set {Rank.Promote::%arg-2's uuid%} to 6
  97.                         set {Rank::%arg-2's uuid%} to "&c&oManager"
  98.                        stop
  99.                    else if player is not "PeaceSteveOfLife":
  100.                        send ""
  101.                        send "&4&lERROR"
  102.                        send ""
  103.                        send "&cYou do not have permission to use this command!"
  104.                        send ""
  105.                        stop
  106.  
  107.                if arg-3 is "Admin":
  108.                    if {Rank::%player's uuid%} is "&6&oHost" or "&c&oManager":
  109.                         send "" to player
  110.                         send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  111.                         send "" to player
  112.                         send "" to arg-2
  113.                         send "Your rank was set to &e%arg-3%" to arg-2
  114.                         send "" to arg-2
  115.                         set {Rank.Promote::%arg-2's uuid%} to 5
  116.                        set {Rank::%arg-2's uuid%} to "&c&oAdmin"
  117.                     else if {Rank::%player's uuid%} is not "&6&oHost" or "&c&oManager":
  118.                        send ""
  119.                        send "&4&lERROR"
  120.                        send ""
  121.                        send "&cYou do not have permission to use this command!"
  122.                        send ""
  123.                        stop
  124.                if arg-3 is "SrMod":
  125.                    if {Rank::%player's uuid%} is "&6&oHost" or "&c&oManager":
  126.                         send "" to player
  127.                         send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  128.                         send "" to player
  129.                         send "" to arg-2
  130.                         send "Your rank was set to &e%arg-3%" to arg-2
  131.                         send "" to arg-2
  132.                         set {Rank.Promote::%arg-2's uuid%} to 4
  133.                        set {Rank::%arg-2's uuid%} to "&e&oSrMod"
  134.                         stop
  135.                     else if {Rank::%player's uuid%} is not "&6&oHost" or "&c&oManager":
  136.                        send ""
  137.                        send "&4&lERROR"
  138.                        send ""
  139.                        send "&cYou do not have permission to use this command!"
  140.                        send ""
  141.                        stop
  142.  
  143.                if arg-3 is "Mod":
  144.                    if {Rank::%player's uuid%} is "&6&oHost" or "&c&oManager":
  145.                         send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  146.                         send "" to player
  147.                         send "" to arg-2
  148.                         send "Your rank was set to &e%arg-3%" to arg-2
  149.                         send "" to arg-2
  150.                         set {Rank.Promote::%arg-2's uuid%} to 3
  151.                        set {Rank::%arg-2's uuid%} to "&e&oMod"
  152.                         stop
  153.                     else if {Rank::%player's uuid%} is not "&6&oHost" or "&c&oManager":                        
  154.                        send ""
  155.                        send "&4&lERROR"
  156.                        send ""
  157.                        send "&cYou do not have permission to use this command!"
  158.                        send ""
  159.                        stop
  160.                if arg-3 is "JrMod":
  161.                    if {Rank::%player's uuid%} is "&6&oHost" or "&c&oManager":
  162.                         send "" to player
  163.                         send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  164.                         send "" to player
  165.                         send "" to arg-2
  166.                         send "Your rank was set to &e%arg-3%" to arg-2
  167.                         send "" to arg-2
  168.                         set {Rank.Promote::%arg-2's uuid%} to 2
  169.                        set {Rank::%arg-2's uuid%} to "&e&oJrMod"
  170.                         stop
  171.                     else if {Rank::%player's uuid%} is not "&6&oHost" or "&c&oManager":
  172.                        send ""
  173.                        send "&4&lERROR"
  174.                        send ""
  175.                        send "&cYou do not have permission to use this command!"
  176.                        send ""
  177.                        stop
  178.  
  179.                if arg-3 is "Builder":
  180.                    if {Rank::%player's uuid%} is "&6&oHost" or "&c&oManager":
  181.                         send "" to player
  182.                         send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  183.                         send "" to player
  184.                         send "" to arg-2
  185.                         send "Your rank was set to &e%arg-3%" to arg-2
  186.                         send "" to arg-2
  187.                         set {Rank.Promote::%arg-2's uuid%} to 1
  188.                        set {Rank::%arg-2's uuid%} to "&d&oBuilder"
  189.                         stop
  190.                     else if {Rank::%player's uuid%} is not "&6&oHost" or "&c&oManager":
  191.                        send ""
  192.                        send "&4&lERROR"
  193.                        send ""
  194.                        send "&cYou do not have permission to use this command!"
  195.                        send ""
  196.                        stop
  197.                if arg-3 is "Legend":
  198.                    if {Rank::%player's uuid%} is "&6&oHost" or "&c&oManager" or "&c&oAdmin":
  199.                         send "" to player
  200.                         send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  201.                         send "" to player
  202.                         send "" to arg-2
  203.                         send "Your rank was set to &e%arg-3%" to arg-2
  204.                         send "" to arg-2
  205.                         set {Rank::%arg-2's uuid%} to "&6✧✧"
  206.                        stop
  207.                    else if {Rank::%player's uuid%} is not "&6&oHost" or "&c&oManager":
  208.                         send ""
  209.                         send "&4&lERROR"
  210.                         send ""
  211.                         send "&cYou do not have permission to use this command!"
  212.                         send ""
  213.                         stop
  214.  
  215.                 if arg-3 is "VIP":
  216.                     if {Rank::%player's uuid%} is "&6&oHost" or "&c&oManager" or "&c&oAdmin":
  217.                        send "" to player
  218.                        send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  219.                        send "" to player
  220.                        send "" to arg-2
  221.                        send "Your rank was set to &e%arg-3%" to arg-2
  222.                        send "" to arg-2
  223.                        set {Rank::%arg-2's uuid%} to "&6"
  224.                        stop
  225.                    else if {Rank::%player's uuid%} is not "&6&oHost" or "&c&oManager":
  226.                        send ""
  227.                        send "&4&lERROR"
  228.                        send ""
  229.                        send "&cYou do not have permission to use this command!"
  230.                        send ""
  231.                        stop
  232.                if arg-3 is "Default":
  233.                    if {Rank::%player's uuid%} is "&6&oHost" or "&c&oManager" or "&c&oHost":
  234.                        send "" to player
  235.                        send "You set &e%arg-2%&f's rank to &e%arg-3%" to player
  236.                        send "" to player
  237.                        send "" to arg-2
  238.                        send "Your rank was set to &e%arg-3%" to arg-2
  239.                        send "" to arg-2
  240.                        set {Rank.Promote::%arg-2's uuid%} to 0
  241.                         set {Rank::%arg-2's uuid%} to "&7"
  242.                        stop
  243.                    else if {Rank::%player's uuid%} is not "&6&oHost" or "&c&oManager":
  244.                         send ""
  245.                         send "&4&lERROR"
  246.                         send ""
  247.                         send "&cYou do not have permission to use this command!"
  248.                         send ""
  249.                         stop
  250.  
  251.  
  252. every tick:
  253.     loop all players:
  254.         if {Rank::%loop-player's uuid%} is not set:
  255.            set {Rank::%loop-player's uuid%} to "&7"
  256.  
  257. every tick in "world":
  258.     loop all players:
  259.         if {Rank::%loop-player's uuid%} is not "&c&oAdmin" or "&6&oCo-Host" or "&6&oHost" or "&c&oManager":
  260.            set loop-player's tablist name to "&7%loop-player% %{Rank::%loop-player's uuid%}%"
  261.         else if {Rank::%loop-player's uuid%} is "&c&oAdmin" or "&6&oCo-Host" or "&6&oHost" or "&c&oManager":
  262.            set loop-player's tablist name to "&f&l%loop-player% %{Rank::%loop-player's uuid%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement