mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-30 03:21:27 +01:00
Fixed captcha command dependency initializing too early
This commit is contained in:
parent
ffd6d8e525
commit
40fc2c893d
@ -12,11 +12,6 @@ import org.bukkit.entity.Player;
|
|||||||
|
|
||||||
public class CaptchaCommand extends ExecutableCommand {
|
public class CaptchaCommand extends ExecutableCommand {
|
||||||
|
|
||||||
/**
|
|
||||||
* RandomString instance, for captcha generation.
|
|
||||||
*/
|
|
||||||
public static RandomString randStr = new RandomString(Settings.captchaLength);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the command.
|
* Execute the command.
|
||||||
*
|
*
|
||||||
@ -34,6 +29,9 @@ public class CaptchaCommand extends ExecutableCommand {
|
|||||||
// Messages instance
|
// Messages instance
|
||||||
final Messages m = Messages.getInstance();
|
final Messages m = Messages.getInstance();
|
||||||
|
|
||||||
|
// Random string instance, for captcha generation (I think) -- timvisee
|
||||||
|
RandomString randStr = new RandomString(Settings.captchaLength);
|
||||||
|
|
||||||
// Get the parameter values
|
// Get the parameter values
|
||||||
String captcha = commandArguments.get(0);
|
String captcha = commandArguments.get(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user