mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Disallow commas in award names
Commas break the parser because they are the separator character in playerAwards.txt
This commit is contained in:
parent
389910868a
commit
c829f5eb02
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user