Advertisement
Blue_Tec

Creative-Server

Jul 28th, 2018
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. options:
  2. per: &9Permissions> &7
  3. rank: &9Ranks> &7
  4. error: &9Error> &7
  5.  
  6. command /setrank [<text>] [<offlineplayer>]:
  7. trigger:
  8. if {rank::%uuid of player%} is "owner":
  9. if arg-1 is not set:
  10. message "&9/setrank <Rank> <Player> &7Set player's rank"
  11. if arg-1 is set:
  12. if arg-1 is "owner":
  13. if arg-2 is not set:
  14. message "{@rank}You changed &e%player%&7's rank to [&4&lOWNER&7]"
  15. message "{@rank}You ranked as [&4&lOWNER&7] by &e%player%"
  16. set {rank::%uuid of player%} to "owner"
  17. if arg-2 is set:
  18. if arg-2 is online:
  19. message "{@rank}You changed &e%arg-2%&7's rank to [&4&lOWNER&7]"
  20. send "{@rank}You ranked as [&4&lOWNER&7] by &e%player%" to arg-2
  21. set {rank::%uuid of arg-2%} to "owner"
  22. else:
  23. message "{@error}%arg-2% is offline"
  24. if arg-1 is "admin":
  25. if arg-2 is not set:
  26. message "{@rank}You changed &e%player%&7's rank to [&c&lADMIN&7]"
  27. message "{@rank}You ranked as [&c&lADMIN&7] by &e%player%"
  28. set {rank::%uuid of player%} to "admin"
  29. if arg-2 is set:
  30. if arg-2 is online:
  31. message "{@rank}You changed &e%arg-2%&7's rank to [&c&lADMIN&7]"
  32. send "{@rank}You ranked as [&c&lADMIN&7] by &e%player%" to arg-2
  33. set {rank::%uuid of arg-2%} to "admin"
  34. else:
  35. message "{@error}%arg-2% is offline"
  36. if arg-1 is "mod":
  37. if arg-2 is not set:
  38. message "{@rank}You changed &e%player%&7's rank to [&6&lMOD&7]"
  39. message "{@rank}You ranked as [&6&lMOD&7] by &e%player%"
  40. set {rank::%uuid of player%} to "mod"
  41. if arg-2 is set:
  42. if arg-2 is online:
  43. message "{@rank}You changed &e%arg-2%&7's rank to [&6&lMOD&7]"
  44. send "{@rank}You ranked as [&6&lMOD&7] by &e%player%" to arg-2
  45. set {rank::%uuid of arg-2%} to "mod"
  46. else:
  47. message "{@error}%arg-2% is offline"
  48. else:
  49. message "{@per}This requires Permission Rank [&4&lOWNER&7]"
  50.  
  51. on command:
  52. if command is "skript" or "sk":
  53. if player is "Koooookey":
  54. stop
  55. else:
  56. cancel event
  57. message "{@per}This requires Permission Rank [&4&lOWNER&7]"
  58.  
  59. command /sban [<offlineplayer>] [<text>]:
  60. trigger:
  61. if {rank::%uuid of player%} is "owner" or "admin":
  62. if arg-1 is not set:
  63. message "&9/ban <Player> <Reason> &7Ban the player"
  64. if arg-1 is set:
  65. if arg-2 is not set:
  66. message "&9/ban <Player> <Reason> &7Ban the player"
  67. if arg-2 is set:
  68. if {rank::%uuid of arg-1%} is "owner" or "admin":
  69. message "{@error}You can't ban the %arg-1%"
  70. else:
  71. execute console command "ban %arg-1% %arg-2%"
  72. else:
  73. message "{@per}This requires Permission Rank [&c&lADMIN&7]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement