Changed /maxspawns to point to defaultMaxSpawns

Closes #18
This commit is contained in:
Shank 2011-06-05 14:06:40 -06:00
parent 0f063cfa11
commit 32947a1a1e

View file

@ -511,7 +511,7 @@ namespace TShockAPI
int ply = args.PlayerID;
int amount = Convert.ToInt32(args.Message.Remove(0, 10));
int.TryParse(args.Message.Remove(0, 10), out amount);
NPC.defaultSpawnRate = amount;
NPC.defaultMaxSpawns = amount;
Tools.Broadcast(Tools.FindPlayer(ply) + " changed the maximum spawns to: " + amount);
}