#1055 Remove multiple "please register" messages
Part 1: - Use only one message entry for "Please register", that may have to be adapted to reflect the proper /register arguments - Remove other message entries from code and from the messages files Breaking change: reg_email_msg is also removed
This commit is contained in:
@@ -8,8 +8,6 @@ import fr.xephi.authme.message.MessageKey;
|
||||
import fr.xephi.authme.process.AsynchronousProcess;
|
||||
import fr.xephi.authme.service.CommonService;
|
||||
import fr.xephi.authme.service.ValidationService;
|
||||
import fr.xephi.authme.settings.properties.RegistrationSettings;
|
||||
import fr.xephi.authme.util.Utils;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import javax.inject.Inject;
|
||||
@@ -65,10 +63,7 @@ public class AsyncAddEmail implements AsynchronousProcess {
|
||||
if (dataSource.isAuthAvailable(player.getName())) {
|
||||
service.send(player, MessageKey.LOGIN_MESSAGE);
|
||||
} else {
|
||||
MessageKey registerMessage = Utils.getRegisterMessage(
|
||||
service.getProperty(RegistrationSettings.REGISTRATION_TYPE),
|
||||
service.getProperty(RegistrationSettings.REGISTER_SECOND_ARGUMENT));
|
||||
service.send(player, registerMessage);
|
||||
service.send(player, MessageKey.REGISTER_MESSAGE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user