mass0070

Skript Simpelt Staff

Dec 15th, 2020 (edited)
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.79 KB | None | 0 0
  1. options:
  2. Server: &7&l[ &c&lServer Navn &7&l]
  3. Gui-Navn: &4&lStaff Menu
  4.  
  5. Gui-Kick: &e&lKick
  6. Gui-Ban: &c&lBan
  7. Gui-Mute: &a&lMute
  8.  
  9. Tilbage: &c&lTilbage
  10.  
  11. Primary: &8
  12. Second: &7
  13.  
  14.  
  15. on load:
  16. delete {staff::*}
  17.  
  18. function Staff(p: player, s: offline player):
  19. set {staff::%{_p}%} to {_s}
  20. open virtual chest with 3 rows named "{@Gui-Navn} | &l%{staff::%{_p}%}%" to {_p}
  21. make gui slot 11 of {_p} with feather named "{@Gui-Kick}" with lore "&eGrund||&6Grund||&eGrund||&6Grund||"
  22. make gui slot 13 of {_p} with tnt named "{@Gui-Ban}" with lore "&eGrund||&6Grund||&eGrund||&6Grund||"
  23. make gui slot 15 of {_p} with fire charge named "{@Gui-Mute}" with lore "&eGrund||&6Grund||&eGrund||&6Grund||"
  24.  
  25. set {_s} to -1
  26. loop 9 times:
  27. add 1 to {_s}
  28. make gui slot {_s} of {_p} with red glass named " "
  29. set {_s} to 17
  30. loop 9 times:
  31. add 1 to {_s}
  32. make gui slot {_s} of {_p} with red glass named " "
  33.  
  34. function Kick(p: player):
  35. open virtual chest with 4 rows named "{@Gui-Navn} &7> {@Gui-Kick}" to {_p}
  36. make gui slot 10 of {_p} with feather named "Spam" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Spam"
  37. make gui slot 12 of {_p} with feather named "Report Spam" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Report Spam"
  38. make gui slot 14 of {_p} with feather named "Caps" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Caps"
  39. make gui slot 16 of {_p} with feather named "Provo" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Provo"
  40. make gui slot 20 of {_p} with feather named "Andet" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Andet"
  41.  
  42. make gui slot 35 of {_p} with compass named "{@Tilbage}"
  43.  
  44. function Ban(p: player):
  45. open virtual chest with 4 rows named "{@Gui-Navn} &7> {@Gui-Ban}" to {_p}
  46. make gui slot 10 of {_p} with tnt named "2 Timer" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}2 Timer"
  47. make gui slot 12 of {_p} with tnt named "5 Timer" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}5 Timer"
  48. make gui slot 14 of {_p} with tnt named "12 Timer" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}12 Timer"
  49. make gui slot 16 of {_p} with tnt named "1 Dag" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}1 Dag"
  50. make gui slot 20 of {_p} with tnt named "3 Dage" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}3 Dage"
  51. make gui slot 22 of {_p} with tnt named "7 Dage" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}7 Dage"
  52. make gui slot 24 of {_p} with tnt named "14 Dage" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}14 Dage"
  53.  
  54. make gui slot 35 of {_p} with compass named "{@Tilbage}"
  55.  
  56. function Mute(p: player):
  57. open virtual chest with 4 rows named "{@Gui-Navn} &7> {@Gui-Mute}" to {_p}
  58. make gui slot 10 of {_p} with fire charge named "Spam" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Spam||{@Primary}Tid: {@Second}1 Time"
  59. make gui slot 12 of {_p} with fire charge named "Report Spam" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Report Spam||{@Primary}Tid: {@Second}1 Time"
  60. make gui slot 14 of {_p} with fire charge named "Caps" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Caps||{@Primary}Tid: {@Second}20 Minutter"
  61. make gui slot 16 of {_p} with fire charge named "Provo" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Provo||{@Primary}Tid: {@Second}10 Minutter"
  62. make gui slot 20 of {_p} with fire charge named "Andet" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Andet||{@Primary}Tid: {@Second}1.5 Time"
  63. make gui slot 22 of {_p} with fire charge named "Reklame" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Reklame||{@Primary}Tid: {@Second}7 Dage"
  64.  
  65. make gui slot 35 of {_p} with compass named "{@Tilbage}"
  66.  
  67. on inventory click:
  68. send "%inventory name of player's current inventory%%nl%%name of clicked item%" to all players
  69. if inventory name of player's current inventory contains "{@Gui-Navn}":
  70. cancel event
  71. name of clicked item is "{@Gui-Kick}":
  72. Kick(player)
  73. name of clicked item is "{@Gui-Ban}":
  74. Ban(player)
  75. name of clicked item is "{@Gui-Mute}":
  76. Mute(player)
  77. name of clicked item is "{@Tilbage}":
  78. set {_slet} to "%{staff::%{_p}%}%"
  79. Staff(player, {_slet})
  80.  
  81. if inventory name of player's current inventory is "{@Gui-Navn} &7> {@Gui-Kick}":
  82. name of clicked item is "Spam":
  83. kick "%{staff::%player%}%" with reason "Spam" as "%player%"
  84. name of clicked item is "Report Spam":
  85. kick "%{staff::%player%}%" with reason "Report Spam" as "%player%"
  86. name of clicked item is "Caps":
  87. kick "%{staff::%player%}%" with reason "Caps" as "%player%"
  88. name of clicked item is "Provo":
  89. kick "%{staff::%player%}%" with reason "Provo" as "%player%"
  90. name of clicked item is "Andet":
  91. kick "%{staff::%player%}%" with reason "Andet" as "%player%"
  92.  
  93. if inventory name of player's current inventory is "{@Gui-Navn} &7> {@Gui-Ban}":
  94. name of clicked item is "2 Timer":
  95. set {_time} to "2 hour" parsed as a timespan
  96. ban "%{staff::%player%}%" for duration {_time} as "%player%"
  97. name of clicked item is "5 Timer":
  98. set {_time} to "5 hour" parsed as a timespan
  99. ban "%{staff::%player%}%" for duration {_time} as "%player%"
  100. name of clicked item is "12 Timer":
  101. set {_time} to "12 hour" parsed as a timespan
  102. ban "%{staff::%player%}%" for duration {_time} as "%player%"
  103. name of clicked item is "1 Dag":
  104. set {_time} to "1 day" parsed as a timespan
  105. ban "%{staff::%player%}%" for duration {_time} as "%player%"
  106. name of clicked item is "3 Dage":
  107. set {_time} to "3 days" parsed as a timespan
  108. ban "%{staff::%player%}%" for duration {_time} as "%player%"
  109. name of clicked item is "7 Dage":
  110. set {_time} to "7 days" parsed as a timespan
  111. ban "%{staff::%player%}%" for duration {_time} as "%player%"
  112. name of clicked item is "14 Dage":
  113. set {_time} to "14 days" parsed as a timespan
  114. ban "%{staff::%player%}%" for duration {_time} as "%player%"
  115.  
  116. if inventory name of player's current inventory is "{@Gui-Navn} &7> {@Gui-Mute}":
  117. name of clicked item is "Spam":
  118. set {_time} to "1 hour" parsed as a timespan
  119. mute "%{staff::%player%}%" with reason "Spam" for duration {_time} as "%player%"
  120. name of clicked item is "Report Spam":
  121. set {_time} to "1 hour" parsed as a timespan
  122. mute "%{staff::%player%}%" with reason "Report Spam" for duration {_time} as "%player%"
  123. name of clicked item is "Caps":
  124. set {_time} to "20 minutes" parsed as a timespan
  125. mute "%{staff::%player%}%" with reason "Caps" for duration {_time} as "%player%"
  126. name of clicked item is "Provo":
  127. set {_time} to "10 minutes" parsed as a timespan
  128. mute "%{staff::%player%}%" with reason "Provo" for duration {_time} as "%player%"
  129. name of clicked item is "Andet":
  130. set {_time} to "1.5 hour" parsed as a timespan
  131. mute "%{staff::%player%}%" with reason "Andet" for duration {_time} as "%player%"
  132. name of clicked item is "Reklame":
  133. set {_time} to "7 days" parsed as a timespan
  134. mute "%{staff::%player%}%" with reason "Reklame" for duration {_time} as "%player%"
  135.  
  136. command /staff <offline player>:
  137. permission: staff
  138. trigger:
  139. Staff(player, arg-1)
Add Comment
Please, Sign In to add comment