Renamed settings to start with a Capital letter
Removed config read on post init. Already read in SetupConfig which is called in Init Added option to disable auto saving
This commit is contained in:
parent
d369852998
commit
17cd6652d7
7 changed files with 48 additions and 30 deletions
|
|
@ -164,7 +164,7 @@ namespace TShockAPI
|
|||
{
|
||||
return Tools.HandleGriefer(args.Player, "Sent client info more than once");
|
||||
}
|
||||
if (ConfigurationManager.hardcoreOnly)
|
||||
if (ConfigurationManager.HardcoreOnly)
|
||||
if (!hardcore)
|
||||
{
|
||||
Tools.ForceKick(args.Player, "Server is set to hardcore characters only!");
|
||||
|
|
@ -459,7 +459,7 @@ namespace TShockAPI
|
|||
|
||||
if (args.Player.InitSpawn)
|
||||
{
|
||||
if (ConfigurationManager.hardcoreOnly && (ConfigurationManager.KickOnHardcoreDeath || ConfigurationManager.BanOnHardcoreDeath))
|
||||
if (ConfigurationManager.HardcoreOnly && (ConfigurationManager.KickOnHardcoreDeath || ConfigurationManager.BanOnHardcoreDeath))
|
||||
if (args.TPlayer.selectedItem != 50)
|
||||
{
|
||||
if (ConfigurationManager.BanOnHardcoreDeath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue