Advertisement
Wolfeee_

Wolfeee_ | Captcha Skript.

Apr 14th, 2020
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. on join:
  2. if player doesn't have permission "captcha.bypass":
  3. set {captcha::%player's uuid%} to true
  4. set {integer} to a random integer between 1 and 5000:
  5. send "&b&o/captcha %{poop}%" to player
  6.  
  7. on movement:
  8. if {captcha::%player's uuid%} is true:
  9. cancel event
  10.  
  11. on chat:
  12. if {captcha::%player's uuid%} is true:
  13. cancel event
  14.  
  15. on command:
  16. if {captcha::%player's uuid%} is true:
  17. cancel event
  18.  
  19. command /captcha [<text>]:
  20. trigger:
  21. if arg-1 is "%{integer}%":
  22. set {captcha::%player's uuid%} to false
  23. send "&b&oCaptcha Succeeded!"
  24. else:
  25. make console execute command "kick %player% &c&oWrong Captcha Code! &7(&b&oRejoin with the IP servernamehere.minehut.gg to redo the captcha!&7)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement