Added /debug-config
Added Version codename Added version tick early Closes #15
This commit is contained in:
parent
30a200b6e0
commit
b786c80bb0
3 changed files with 40 additions and 4 deletions
|
|
@ -31,6 +31,7 @@ namespace TShockAPI
|
|||
public static bool kickBoom = true;
|
||||
public static bool spawnProtect = true;
|
||||
public static int spawnProtectRadius = 5;
|
||||
public static ConfigFile config = null;
|
||||
|
||||
public enum NPCList : int
|
||||
{
|
||||
|
|
@ -44,6 +45,8 @@ namespace TShockAPI
|
|||
TextReader tr = new StreamReader(FileTools.SaveDir + "config.json");
|
||||
ConfigFile cfg = JsonConvert.DeserializeObject<ConfigFile>(tr.ReadToEnd());
|
||||
tr.Close();
|
||||
|
||||
config = cfg;
|
||||
|
||||
invasionMultiplier = cfg.InvasionMultiplier;
|
||||
defaultMaxSpawns = cfg.DefaultMaximumSpawns;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue