TODO
This commit is contained in:
parent
ce2ee9e0fb
commit
35aba2207b
@ -40,7 +40,7 @@ public class GuiCaptchaHandler implements Listener {
|
|||||||
//define global enabled
|
//define global enabled
|
||||||
|
|
||||||
//define timesLeft
|
//define timesLeft
|
||||||
private int timesLeft = 3;
|
public int timesLeft = 3;
|
||||||
//Use ConcurrentHashMap to store player and their close reason
|
//Use ConcurrentHashMap to store player and their close reason
|
||||||
protected static ConcurrentHashMap<Player, String> closeReasonMap = new ConcurrentHashMap<>();
|
protected static ConcurrentHashMap<Player, String> closeReasonMap = new ConcurrentHashMap<>();
|
||||||
//define randomStringSet
|
//define randomStringSet
|
||||||
@ -49,7 +49,17 @@ public class GuiCaptchaHandler implements Listener {
|
|||||||
Random randomItemSet = new Random();
|
Random randomItemSet = new Random();
|
||||||
Random howManyRandom = new Random();
|
Random howManyRandom = new Random();
|
||||||
|
|
||||||
|
// public int tryTimesReset(){
|
||||||
|
// int tmp = 1;
|
||||||
|
// if (AuthMe.settings.getProperty(SecuritySettings.GUI_CAPTCHA_MAX_TRY) < 1){
|
||||||
|
// return tmp;
|
||||||
|
// }
|
||||||
|
// if (AuthMe.settings.getProperty(SecuritySettings.GUI_CAPTCHA_MAX_TRY) >= 1){
|
||||||
|
// tmp = AuthMe.settings.getProperty(SecuritySettings.GUI_CAPTCHA_MAX_TRY);
|
||||||
|
// return tmp;
|
||||||
|
// }
|
||||||
|
// return 3;
|
||||||
|
// }
|
||||||
|
|
||||||
int howLongIsRandomString = (howManyRandom.nextInt(3)+1);
|
int howLongIsRandomString = (howManyRandom.nextInt(3)+1);
|
||||||
public GuiCaptchaHandler(Plugin plugin) {
|
public GuiCaptchaHandler(Plugin plugin) {
|
||||||
|
|||||||
@ -38,8 +38,8 @@ public final class SecuritySettings implements SettingsHolder {
|
|||||||
public static final Property<Boolean> GUI_CAPTCHA_BE_COMPATIBILITY = newProperty("3rdPartyFeature.captcha.ignoreBedrock",false);
|
public static final Property<Boolean> GUI_CAPTCHA_BE_COMPATIBILITY = newProperty("3rdPartyFeature.captcha.ignoreBedrock",false);
|
||||||
|
|
||||||
// @Comment({"Should we kick the players when they failed captcha too many times?",
|
// @Comment({"Should we kick the players when they failed captcha too many times?",
|
||||||
// "(Set this to 0 to disable)(Default: 4)"})
|
// "(Minimum value is 1)(Default: 3)"})
|
||||||
// public static final Property<Integer> GUI_CAPTCHA_MAX_TRY = newProperty("3rdPartyFeature.captcha.maxTryTimes",4);
|
// public static final Property<Integer> GUI_CAPTCHA_MAX_TRY = newProperty("3rdPartyFeature.captcha.maxTryTimes",3);
|
||||||
|
|
||||||
|
|
||||||
//@Comment({"Using which API to get hash data?",
|
//@Comment({"Using which API to get hash data?",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user