From 9478f3fc7e4a3a8b864cb248fc025ae6a31c2d35 Mon Sep 17 00:00:00 2001 From: Fam0r Date: Mon, 17 May 2021 13:05:48 +0300 Subject: [PATCH 1/2] Better parsing for /map authors --- MCGalaxy/Levels/LevelOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Levels/LevelOptions.cs b/MCGalaxy/Levels/LevelOptions.cs index ddbf160c4..d15a2b60e 100644 --- a/MCGalaxy/Levels/LevelOptions.cs +++ b/MCGalaxy/Levels/LevelOptions.cs @@ -203,7 +203,7 @@ namespace MCGalaxy { } static void SetAuthors(Player p, Level lvl, string value) { - lvl.Config.Authors = value.Replace(" ", "&S, "); + lvl.Config.Authors = value.Replace(", ", ",").Replace(" ", ","); p.Message("Map authors set to: &b" + lvl.Config.Authors); } From b66c68b450058dd8d8c9ef03a0e57c8d27f58537 Mon Sep 17 00:00:00 2001 From: Fam0r Date: Mon, 17 May 2021 13:29:22 +0300 Subject: [PATCH 2/2] Parse /map realmowner better as well --- MCGalaxy/Levels/LevelOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Levels/LevelOptions.cs b/MCGalaxy/Levels/LevelOptions.cs index d15a2b60e..5ba8067ea 100644 --- a/MCGalaxy/Levels/LevelOptions.cs +++ b/MCGalaxy/Levels/LevelOptions.cs @@ -102,7 +102,7 @@ namespace MCGalaxy { } static void SetOwner(Player p, Level lvl, string value) { - lvl.Config.RealmOwner = value.Replace(' ', ','); + lvl.Config.RealmOwner = value.Replace(", ", ",").Replace(" ", ","); if (value.Length == 0) p.Message("Removed realm owner for this level."); else p.Message("Set realm owner/owners of this level to {0}.", value); }