Zeldaboy111

Skript Tutorial #15 Ban skript

Oct 4th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. options:
  2. {ban::%player%} = {ban::%arg 1%}
  3. {ban::%player%} = {ban::%loop-player%}
  4. {bann::%player%} = {bann::%arg 1%}
  5. {bann::%player%} = {bann::%loop-player%}
  6.  
  7. on connect:
  8. if {ban.%uuid of player%} is true:
  9. delete {ban.%uuid of player%}
  10. kick player due to "&6Je bent gebanned!%nl%&3Rede: &b%{ban.reason.%uuid of player%}%"
  11.  
  12. command /punishment [<offline player>]:
  13. aliases: /pu
  14. trigger:
  15. if player has permission "punishment":
  16. if arg 1 is set:
  17. open chest with 2 rows named "&4-=-=-&cBan &c%arg 1%&4-=-=-" to player
  18.  
  19. format slot 0 of player with diamond named "&3X-Ray hacks" with lore "&7Ban voor: 3 dagen" to close then run [execute console command "/cpunishment Zeldaboy111 X-Ray"]
  20. else:
  21. send "&c<Punishment> &4Doe &c/punishment [speler] &4om deze command uit te voeren."
  22. else:
  23. send "&c<Punishment> &4Je hebt onvoldoende rechten om deze command uit te voeren."
  24.  
  25.  
  26. #===================================================
  27.  
  28. command /cpunishment [<offline player>] [<text>] [<number>]:
  29. executable by: console
  30. trigger:
  31. if arg 1 is set:
  32. if arg 2 is "X-Ray":
  33.  
  34. set {ban.player.%uuid of arg 1%} to arg 1
  35. set {ban.%uuid of arg 1%} to true
  36.  
  37. set {ban.date.%uuid of arg 1%} to now
  38. set {ban.reason.%uuid of arg 1%} to "%arg 2%"
  39.  
  40. set {ban.world.%uuid of arg 1%} to world of arg 1
  41.  
  42. loop all players in world "%{ban.world.%uuid of arg 1%}%":
  43. send "&4<&cBanned&4> De speler: &c%{ban.player.%uuid of arg 1%}% &4is gebanned met de rede: &c%{ban.reason.%uuid of arg 1%}%" to loop-player
  44.  
  45. kick arg 1 due to "&6Je bent gebanned!%nl%&3Rede: &b%{ban.reason.%uuid of arg 1%}%"
  46.  
  47. launch star firework colored red and red at arg 1 timed 0.2
  48. wait 1 tick
  49. launch star firework colored orange and red at arg 1 timed 0.2
  50. wait 1 tick
  51. launch star firework colored orange and red at arg 1 timed 0.2
  52. wait 1 tick
  53. launch star firework colored orange and yellow at arg 1 timed 0.2
  54. wait 1 tick
  55. launch star firework colored orange and yellow at arg 1 timed 0.2
  56. wait 1 tick
  57. launch star firework colored yellow and green at arg 1 timed 0.2
  58. strike lightning at arg 1
  59. wait 5 ticks
  60. strike lightning at arg 1
  61.  
  62. else:
  63. send "&c<CPunishment> &4Kan persoon niet bannen omdat: de &creden &4is niet opgegeven." to console
  64. else:
  65. send "&c<CPunishment> &4Kan persoon niet bannen omdat: de &cnaam &4is niet opgegeven en de &creden &4is niet opgegeven." to console
  66.  
  67. command /pm:
  68. trigger:
  69. execute player command "/sk reload punishment"
Add Comment
Please, Sign In to add comment