Merge branch 'master' of github.com:TShock/TShock

This commit is contained in:
Maverick Motherfucker 2011-06-05 13:16:36 -07:00
commit 49c9254569

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);
}