Allow any ASCII character in server name/motd, fixes #443 (Thanks Pear)

This commit is contained in:
UnknownShadow200 2017-05-11 11:13:35 +10:00
parent 5262b48800
commit 79f8940cf0

View File

@ -170,12 +170,12 @@ namespace MCGalaxy {
[ConfigBool("tablist-bots", "Tablist", null, false)]
public static bool TablistBots = false;
[ConfigString("server-name", "General", null,
"[MCGalaxy] Default", false, "![]&:.,{}~-+()?_/\\' ", 64)]
const string asciiChars = " !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
[ConfigString("server-name", "General", null, "[MCGalaxy] Default", false, asciiChars, 64)]
public static string name = "[MCGalaxy] Default";
[ConfigString("motd", "General", null, "Welcome",
false, "=![]&:.,{}~-+()?_/\\' ", 128)]
[ConfigString("motd", "General", null, "Welcome", false, asciiChars, 128)]
public static string motd = "Welcome!";
[ConfigInt("max-players", "Server", null, 12, 1, 128)]
public static int players = 12;
[ConfigInt("max-guests", "Server", null, 10, 1, 128)]