Disallow commas in award names

Commas break the parser because they are the separator character in playerAwards.txt
This commit is contained in:
Goodlyay 2024-02-03 18:29:52 -08:00
parent 389910868a
commit c829f5eb02

View File

@ -40,6 +40,8 @@ namespace MCGalaxy.Modules.Awards
string award = args[0].Trim();
string desc = args[1].Trim();
if (award.Contains(",")) { p.Message("&WAward names cannot contain commas."); return; }
if (!AwardsList.Add(award, desc)) {
p.Message("This award already exists."); return;
} else {