mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-16 10:49:27 -04:00
Merge pull request #609 from Fam0r/authors-fix
Better parsing for /map authors/realmowner
This commit is contained in:
commit
b902cd50f1
@ -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);
|
||||
}
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user