#930 Add specific message for register captcha success
This commit is contained in:
@@ -74,7 +74,7 @@ public class CaptchaCommand extends PlayerCommand {
|
||||
private void checkRegisterCaptcha(Player player, String captchaCode) {
|
||||
final boolean isCorrectCode = registrationCaptchaManager.checkCode(player, captchaCode);
|
||||
if (isCorrectCode) {
|
||||
commonService.send(player, MessageKey.CAPTCHA_SUCCESS);
|
||||
commonService.send(player, MessageKey.REGISTER_CAPTCHA_SUCCESS);
|
||||
commonService.send(player, MessageKey.REGISTER_MESSAGE);
|
||||
} else {
|
||||
String newCode = registrationCaptchaManager.getCaptchaCodeOrGenerateNew(player.getName());
|
||||
|
||||
@@ -137,6 +137,9 @@ public enum MessageKey {
|
||||
/** To register you have to solve a captcha code first, please use the command: /captcha <theCaptcha> */
|
||||
CAPTCHA_FOR_REGISTRATION_REQUIRED("captcha_for_registration", "<theCaptcha>"),
|
||||
|
||||
/** Valid captcha! You may now register with /register */
|
||||
REGISTER_CAPTCHA_SUCCESS("register_captcha_valid"),
|
||||
|
||||
/** A VIP player has joined the server when it was full! */
|
||||
KICK_FOR_VIP("kick_forvip"),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user