Fixed captcha command dependency initializing too early

This commit is contained in:
Tim Visée 2015-11-01 21:49:47 +01:00
parent ffd6d8e525
commit 40fc2c893d

View File

@ -12,11 +12,6 @@ import org.bukkit.entity.Player;
public class CaptchaCommand extends ExecutableCommand {
/**
* RandomString instance, for captcha generation.
*/
public static RandomString randStr = new RandomString(Settings.captchaLength);
/**
* Execute the command.
*
@ -34,6 +29,9 @@ public class CaptchaCommand extends ExecutableCommand {
// Messages instance
final Messages m = Messages.getInstance();
// Random string instance, for captcha generation (I think) -- timvisee
RandomString randStr = new RandomString(Settings.captchaLength);
// Get the parameter values
String captcha = commandArguments.get(0);