Merge branch 'master' of github.com:TShock/TShock
This commit is contained in:
commit
49c9254569
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,7 @@ namespace TShockAPI
|
||||||
int ply = args.PlayerID;
|
int ply = args.PlayerID;
|
||||||
int amount = Convert.ToInt32(args.Message.Remove(0, 10));
|
int amount = Convert.ToInt32(args.Message.Remove(0, 10));
|
||||||
int.TryParse(args.Message.Remove(0, 10), out amount);
|
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);
|
Tools.Broadcast(Tools.FindPlayer(ply) + " changed the maximum spawns to: " + amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue