Advertisement
Zeldaboy111

Ban Systeem ]|[ Skript #302

Apr 12th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 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.  
  24. command /ban:
  25. trigger:
  26. set {ban.%player%} to now
  27. set {ban.%player%.time} to 7 seconds
  28. kick player due to "BANNED"
  29.  
  30. command /checkban:
  31. trigger:
  32. set {_difference} to difference between now and {ban.%player%}
  33. if {_difference} > {ban.%player%.time}:
  34. delete {ban.%player%.time}
  35. delete {ban.%player%}
  36. send "%{_difference}% YOUR BAN HAS BEEN REVOKED"
  37.  
  38. on connect:
  39. set {_difference} to difference between now and {ban.%player%}
  40. if {_difference} > {ban.%player%.time}:
  41. delete {ban.%player%.time}
  42. delete {ban.%player%}
  43.  
  44. else:
  45. kick player due to "BANNED"
  46.  
  47. on quit:
  48. if {ban.%player%} is set:
  49. set quit message to ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement