Advertisement
70sOn7

Anti-Cheat

Nov 22nd, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. on left click:
  2. add 1 to {click.%player%}
  3.  
  4. on break:
  5. delete {click.%player%}
  6.  
  7. every 20 ticks:
  8. loop all players:
  9. if {click.%loop-player%} is more than 14:
  10. send "&cYou may be banned! Click slower!" to loop-player
  11. if {click.%loop-player%} is more than 20:
  12. broadcast "&a[CustomEye] &c%loop-player% &7has been banned for &aAuto Clicker / Illegal Modifications!"
  13. make console execute "/minecraft:ban %loop-player% [CustomEye] Auto Clicker Detected / Illegal Modifications!"
  14. add 1 to {anticheat.bans}
  15. add loop-player to {anticheat.players::*}
  16. delete {click.%loop-player%}
  17.  
  18. command /customeye [<text>]:
  19. aliases: /ce
  20. permission: essentials.customeye
  21. permission message: &fUnknow command. Type "/help" for help
  22. trigger:
  23. if arg-1 is not set:
  24. send "&a[CustomEye]"
  25. send " "
  26. send "&a/customeye Reload"
  27. send "&a/customeye List"
  28. if arg-1 is set:
  29. if arg-1 is "reload":
  30. send "&a[CustomEye] &7Reloading..."
  31. wait 5 seconds
  32. send "&a[CustomEye] &7CustomEye reload successfully reload!"
  33. if arg-1 is "list":
  34. send "&6[CusomEye]"
  35. send " "
  36. send "&6Banned users &8[&a%{anticheat.bans}%&8]:"
  37. send " "
  38. send "&a%{anticheat.players::*}%"
  39.  
  40.  
  41. command /ceban [<offlineplayer>] [<text>]:
  42. permission: essentials.customeyeban
  43. permission message: &fUnknow command. Type "/help" for help
  44. trigger:
  45. if arg-1 is not set:
  46. send "&6[CusotmEye]"
  47. send "&c/ceban (Player) (Reason)"
  48. stop
  49. if arg-2 is not set:
  50. send "&6[CustomEye]"
  51. send "&c/ceban (Player) (Reason)"
  52. stop
  53. if arg-1 is set:
  54. if arg-2 is set:
  55. broadcast "&a[CustomEye] &a%arg-1% &7has been banned for &a%arg-2%"
  56. make console execute "/minecraft:ban %arg-1% [CustomEye] %arg-2%"
  57. add 1 to {anticheat.bans}
  58. add arg 1 to {anticheat.players::*}
  59.  
  60. on chat:
  61. if player is sneaking:
  62. wait 3 seconds
  63. if player is sneaking:
  64. broadcast "&a[CustomEye] &a%player% &7has been banned for &aAuto Sneak"
  65. make console execute "/minecraft:ban %player% [CustomEye] Auto Sneak"
  66. add 1 to {anticheat.bans}
  67. add player to {anticheat.players::*}
  68.  
  69. on command:
  70. if player is sneaking:
  71. wait 3 seconds
  72. if player is sneaking:
  73. broadcast "&a[CustomEye] &a%player% &7has been banned for &aAuto Sneak"
  74. make console execute "/minecraft:ban %player% [CustomEye] Auto Sneak"
  75. add 1 to {anticheat.bans}
  76. add player to {anticheat.players::*}
  77.  
  78. every second in "world" or "ASkyBlock" or "ASkyBlock_nether":
  79. loop all players:
  80. if loop-player is flying:
  81. if loop-player doesn't have permission "essentials.fly":
  82. wait 1 second
  83. if loop-player is flying:
  84. loop all players:
  85. if loop-player has permission "customeye.notify":
  86. send "&a[CustomEye] &a%loop-player% &7has been flying for 2 seconds!" to loop-player
  87. wait 2 seconds
  88. if loop-player is flying:
  89. broadcast "&a[CustomEye] &a%player% &7has been banned for &aFlying"
  90. make console execute "/minecraft:ban %player% [CustomEye] Auto Sneak"
  91. add 1 to {anticheat.bans}
  92. add player to {anticheat.players::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement