Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {Captcha.%player's uuid%} is not set:
- set {Captcha.%player's uuid%} to 0
- if {Captcha.%player's uuid%} is not 6:
- Captcha(sender)
- function Captcha(p: player):
- set {_UUID} to uuid of {_p}
- set {True.%{_UUID}%} to true
- set {Captcha.%{_UUID}%} to 0
- open virtual chest with 6 rows named "&aVERIFICATION PANEL" to {_p}
- format gui slot 0 and 53 of {_p} with black glass pane named "&cNot Here!" to run:
- loop all players:
- if loop-player has permission "Staff.logs":
- send "&3[LOGS] &f%{_p}% failed the Captcha" to loop-player
- set {Captcha.%{_UUID}%} to 0
- kick {_p} due to "&a&lKICKED DUE TO:%nl%%nl%&fFailed Captcha"
- loop 52 times:
- format gui slot loop-value of {_p} with black glass pane named "&cNot Here!" to run:
- loop all players:
- if loop-player has permission "Staff.logs":
- send "&3[LOGS] &f%{_p}% failed the Captcha" to loop-player
- set {Captcha.%{_UUID}%} to 0
- kick {_p} due to "&a&lKICKED DUE TO:%nl%%nl%&fFailed Captcha"
- wait 2 ticks
- loop 5 times:
- set {_RNG} to random integer between 0 and 53
- format gui slot {_RNG} of {_p} with green glass pane named "&aCLICK ME" to run:
- add 1 to {Captcha.%{_UUID}%}
- format gui slot clicked slot of {_p} with yellow glass pane named "&eNice!" to run:
- format gui slot clicked slot of {_p} with red glass pane named "&cOw!"
- while {True.%{_UUID}%} is true:
- if {Captcha.%{_UUID}%} = 5:
- send "&aYou completed the Captcha. You may now play!" to {_p}
- set {True.%{_UUID}%} to false
- set {Captcha.%{_UUID}%} to 6
- close {_p}'s inventory
- wait 5 ticks
- on inventory close:
- if {True.%player's uuid%} is true:
- loop all players:
- if loop-player has permission "Staff.logs":
- send "&3[LOGS] &f%player% failed the Captcha" to loop-player
- set {Captcha.%player's uuid%} to 0
- kick player due to "&a&lKICKED DUE TO:%nl%%nl%&fFailed Captcha"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement