Fixed captcha command dependency initializing too early
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user