Zeldaboy111

Ban Informatie ]|[ Skript #304

Apr 19th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. options:
  2. logo: &c&lPunishment &8►&7
  3.  
  4.  
  5. command /punish [<text>]:
  6. aliases: /pu
  7. trigger:
  8. if player has permission "rank.helper":
  9. if arg-1 is set:
  10. if arg-1 parsed as a player is set:
  11. set {_t} to arg-1 parsed as a player
  12. open chest with 6 rows named "Punish %{_t}%" to player
  13.  
  14. set slot 19 of player's current inventory to paper named "&aWarn" with lore "", "&7Click to Warn %{_t}%", "" and "&8(&2Helper&8)"
  15. set slot 20 of player's current inventory to stone sword named "&cClient Modifications" with lore "", "&7Click to Ban %{_t}%", "&7for &oClient Modifications", "" and "&8(&2Helper&8)" without any NBT
  16.  
  17.  
  18. else:
  19. send "{@logo} The player &c%arg-1% &7is not found."
  20. else:
  21. send "{@logo} You have to give up a &cplayer &7to punish."
  22.  
  23. command /checkoffenses [<text>]:
  24. aliases: /checkoff
  25. trigger:
  26. if player has permission "rank.helper":
  27. if arg-1 is set:
  28. if arg-1 parsed as a player is set:
  29. set {_t} to arg-1 parsed as a player
  30. send "&8&m &8[ &cOFFENSESE &8]&8&m "
  31. send " "
  32. send "&7User&8: &c%{_t}%"
  33. if {ban.%{_t}%} is set:
  34. send "&7Active Ban&8: &7%{ban.%{_t}%.reason}%"
  35. send "&7Total Ban Length&8: &7%{ban.%{_t}%.time}%"
  36. send "&7Banned At&8: &7%{ban.%{_t}%}%"
  37. send "&7Unban at&8: &7%{ban.%{_t}%.unban}%"
  38.  
  39. else:
  40. send "&7Active Ban&8: &7None"
  41.  
  42. if {warn.%{_t}%} is set:
  43.  
  44. else:
  45. send "&7Active Warnings&8: &7None"
  46.  
  47. send " "
  48. send "&8&m &8[ &cOFFENSESE &8]&8&m "
  49.  
  50. else:
  51. send "{@logo} The player &c%arg-1% &7is not found."
  52. else:
  53. send "{@logo} You have to give up a &cplayer &7to chec it's offenses."
  54.  
  55. on connect:
  56. if {ban.%player%} is set:
  57. set {_difference} to difference between now and {ban.%player%}
  58. if {_difference} > {ban.%player%.time}:
  59. delete {ban.%player%.time}
  60. delete {ban.%player%.unban}
  61. delete {ban.%player%}
  62.  
  63. else:
  64. kick player due to "BANNED"
  65.  
  66. on quit:
  67. if {ban.%player%} is set:
  68. set quit message to ""
  69.  
  70. on inventory click:
  71. if type of clicked inventory is chest inventory:
  72. if inventory name of player's current inventory starts with "Punish ":
  73. cancel event
  74. set {_name::*} to inventory name of player's current inventory split at " "
  75. set {_target} to {_name::2}
  76. set {_target} to {_target} parsed as an offline player
  77.  
  78. if clicked slot is 19:
  79.  
  80.  
  81. else if clicked slot is 20:
  82. set {ban.%{_target}%} to now
  83. set {ban.%{_target}%.unban} to now
  84. set {ban.%{_target}%.time} to 7 seconds
  85. set {ban.%{_target}%.reason} to "&cClient Modifications"
  86.  
  87. add {ban.%{_target}%.time} to {ban.%{_target}%.unban}
  88. close player's inventory
  89. send "{@logo} You have banned &c%{_target}% &7for &c%{ban.%{_target}%.time}%&7. &8(&c%{ban.%{_target}%.reason}%&8)"
  90. kick {_target} due to "&9&lBANNED%nl%&cClient Modifications%nl%%nl%&7Banned at&8: &7%{ban.%{_target}%}%%nl%&7Unban at&8: &7%{ban.%{_target}%.unban}%"
Add Comment
Please, Sign In to add comment