mirror of
https://e.coding.net/circlecloud/AuthMe.git
synced 2024-12-22 06:48:55 +00:00
添加配置选项 文本分割字符...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
ed10708948
commit
5e79e2a5f7
@ -45,7 +45,7 @@ public class Messages {
|
|||||||
loc = "错误的语言文件 " + msg + " ; 请联系管理员升级语言文件";
|
loc = "错误的语言文件 " + msg + " ; 请联系管理员升级语言文件";
|
||||||
ConsoleLogger.showError("错误的语言文件 " + msg + " 请检查您的配置文件" + msgcfg.getName() + " !");
|
ConsoleLogger.showError("错误的语言文件 " + msg + " 请检查您的配置文件" + msgcfg.getName() + " !");
|
||||||
}
|
}
|
||||||
return loc.split("\n");
|
return loc.split(Settings.messageSplit);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,8 @@ public final class Settings {
|
|||||||
public static String getNickRegex, getUnloggedinGroup, getMySQLHost, getMySQLPort, getMySQLUsername, getMySQLPassword, getMySQLDatabase, getMySQLTablename, getMySQLColumnName,
|
public static String getNickRegex, getUnloggedinGroup, getMySQLHost, getMySQLPort, getMySQLUsername, getMySQLPassword, getMySQLDatabase, getMySQLTablename, getMySQLColumnName,
|
||||||
getMySQLColumnPassword, getMySQLColumnIp, getMySQLColumnLastLogin, getMySQLColumnSalt, getMySQLColumnGroup, getMySQLColumnEmail, unRegisteredGroup, backupWindowsPath, getRegisteredGroup,
|
getMySQLColumnPassword, getMySQLColumnIp, getMySQLColumnLastLogin, getMySQLColumnSalt, getMySQLColumnGroup, getMySQLColumnEmail, unRegisteredGroup, backupWindowsPath, getRegisteredGroup,
|
||||||
getMySQLlastlocX, getMySQLlastlocY, getMySQLlastlocZ, rakamakUsers, rakamakUsersIp, getmailAccount, getmailPassword, getmailSMTP, getMySQLColumnId, getmailSenderName, getMailSubject,
|
getMySQLlastlocX, getMySQLlastlocY, getMySQLlastlocZ, rakamakUsers, rakamakUsersIp, getmailAccount, getmailPassword, getmailSMTP, getMySQLColumnId, getmailSenderName, getMailSubject,
|
||||||
getMailText, getMySQLlastlocWorld, defaultWorld, getPhpbbPrefix, getWordPressPrefix, getMySQLColumnLogged, spawnPriority, crazyloginFileName, getPassRegex, getMySQLColumnRealName;
|
getMailText, getMySQLlastlocWorld, defaultWorld, getPhpbbPrefix, getWordPressPrefix, getMySQLColumnLogged, spawnPriority, crazyloginFileName, getPassRegex, getMySQLColumnRealName,
|
||||||
|
messageSplit;
|
||||||
public static HashAlgorithm getPasswordHash;
|
public static HashAlgorithm getPasswordHash;
|
||||||
public static List<String> getRestrictedIp;
|
public static List<String> getRestrictedIp;
|
||||||
public static List<String> getUnrestrictedName;
|
public static List<String> getUnrestrictedName;
|
||||||
@ -187,6 +188,7 @@ public final class Settings {
|
|||||||
isStopEnabled = configFile.getBoolean("Security.SQLProblem.stopServer", true);
|
isStopEnabled = configFile.getBoolean("Security.SQLProblem.stopServer", true);
|
||||||
reloadSupport = configFile.getBoolean("Security.ReloadCommand.useReloadCommandSupport", true);
|
reloadSupport = configFile.getBoolean("Security.ReloadCommand.useReloadCommandSupport", true);
|
||||||
allowCommands = configFile.getStringList("settings.restrictions.allowCommands");
|
allowCommands = configFile.getStringList("settings.restrictions.allowCommands");
|
||||||
|
messageSplit = configFile.getString("settings.messagesplit", "&n");
|
||||||
if (configFile.contains("allowCommands")) {
|
if (configFile.contains("allowCommands")) {
|
||||||
if (!allowCommands.contains("/login")) {
|
if (!allowCommands.contains("/login")) {
|
||||||
allowCommands.add("/login");
|
allowCommands.add("/login");
|
||||||
|
@ -44,6 +44,7 @@ DataSource:
|
|||||||
# 字段 realname 字段名
|
# 字段 realname 字段名
|
||||||
mySQLRealName: realname
|
mySQLRealName: realname
|
||||||
settings:
|
settings:
|
||||||
|
messagesplit: '&n'
|
||||||
sessions:
|
sessions:
|
||||||
# 是否开启 Session 缓存.
|
# 是否开启 Session 缓存.
|
||||||
# 如果开启 Session 玩家可以在特殊情况下自动登录.
|
# 如果开启 Session 玩家可以在特殊情况下自动登录.
|
||||||
|
Loading…
Reference in New Issue
Block a user