diff --git a/src/main/java/cn/citycraft/AuthMe/settings/Messages.java b/src/main/java/cn/citycraft/AuthMe/settings/Messages.java index f072aca..926c145 100644 --- a/src/main/java/cn/citycraft/AuthMe/settings/Messages.java +++ b/src/main/java/cn/citycraft/AuthMe/settings/Messages.java @@ -45,7 +45,7 @@ public class Messages { loc = "错误的语言文件 " + msg + " ; 请联系管理员升级语言文件"; ConsoleLogger.showError("错误的语言文件 " + msg + " 请检查您的配置文件" + msgcfg.getName() + " !"); } - return loc.split("\n"); + return loc.split(Settings.messageSplit); } } diff --git a/src/main/java/cn/citycraft/AuthMe/settings/Settings.java b/src/main/java/cn/citycraft/AuthMe/settings/Settings.java index 9ab2e82..9a5775f 100644 --- a/src/main/java/cn/citycraft/AuthMe/settings/Settings.java +++ b/src/main/java/cn/citycraft/AuthMe/settings/Settings.java @@ -43,7 +43,8 @@ public final class Settings { public static String getNickRegex, getUnloggedinGroup, getMySQLHost, getMySQLPort, getMySQLUsername, getMySQLPassword, getMySQLDatabase, getMySQLTablename, getMySQLColumnName, getMySQLColumnPassword, getMySQLColumnIp, getMySQLColumnLastLogin, getMySQLColumnSalt, getMySQLColumnGroup, getMySQLColumnEmail, unRegisteredGroup, backupWindowsPath, getRegisteredGroup, 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 List getRestrictedIp; public static List getUnrestrictedName; @@ -187,6 +188,7 @@ public final class Settings { isStopEnabled = configFile.getBoolean("Security.SQLProblem.stopServer", true); reloadSupport = configFile.getBoolean("Security.ReloadCommand.useReloadCommandSupport", true); allowCommands = configFile.getStringList("settings.restrictions.allowCommands"); + messageSplit = configFile.getString("settings.messagesplit", "&n"); if (configFile.contains("allowCommands")) { if (!allowCommands.contains("/login")) { allowCommands.add("/login"); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 653644c..8ab2d67 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -44,6 +44,7 @@ DataSource: # 字段 realname 字段名 mySQLRealName: realname settings: + messagesplit: '&n' sessions: # 是否开启 Session 缓存. # 如果开启 Session 玩家可以在特殊情况下自动登录.