/*
* The MIT License (MIT)
*
* Copyright (c) 2015 games647 and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.github.games647.flexiblelogin.config;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
@ConfigSerializable
public class EmailConfiguration {
@Setting(comment = "Is password recovery using an email allowed")
private boolean enabled = false;
@Setting(comment = "Mail server")
private String host = "smtp.gmail.com";
@Setting(comment = "SMTP Port for outgoing messages")
private int port = 465;
@Setting(comment = "Username for the account you want to the email from")
private String account = "";
@Setting(comment = "Password for the account you want to the email from")
private String password = "";
@Setting(comment = "Displays as sender in the email client")
private String senderName = "Your minecraft server name";
@Setting(comment = "Email subject/title")
private String subject = "Your new Password";
@Setting(comment = "Email contents. You can use HTML here")
private String text = "New password for %player% on Minecraft server %server%: %password%";
public boolean isEnabled() {
return enabled;
}
public String getHost() {
return host;
}
public int getPort() {
return port;
}
public String getAccount() {
return account;
}
public String getPassword() {
return password;
}
public String getSenderName() {
return senderName;
}
public String getSubject() {
return subject;
}
public String getText() {
return text;
}
}