Deprecate DCU disable; default to on
This commit is contained in:
parent
ba74a9d740
commit
b922d8722e
2 changed files with 8 additions and 1 deletions
|
|
@ -433,8 +433,9 @@ namespace TShockAPI
|
|||
[Description("The minimum password length for new user accounts. Minimum value is 4.")]
|
||||
public int MinimumPasswordLength = 4;
|
||||
|
||||
[Obsolete("This is being removed in future versions of TShock due to Terraria fixes.")]
|
||||
[Description("Enable the DCU. Very dangerous; can destroy world without consequence.")] public bool
|
||||
VeryDangerousDoNotChangeEnableDrillContainmentUnit = false;
|
||||
VeryDangerousDoNotChangeEnableDrillContainmentUnit = true;
|
||||
|
||||
[Description("Show backup autosave messages.")] public bool ShowBackupAutosaveMessages = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -3043,6 +3043,9 @@ namespace TShockAPI
|
|||
|
||||
if (type == BuffID.DrillMount && !TShock.Config.VeryDangerousDoNotChangeEnableDrillContainmentUnit)
|
||||
{
|
||||
TShock.Log.ConsoleInfo("The configuration option disabling the drill containment unit will be removed at a future date.");
|
||||
TShock.Log.ConsoleInfo("As of Terraria 1.3.0.5, this option is no longer defaulted to kick DCU users.");
|
||||
TShock.Log.ConsoleInfo("This is because the DCU is now covered by TShock protection systems.");
|
||||
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
|
||||
return true;
|
||||
}
|
||||
|
|
@ -3343,6 +3346,9 @@ namespace TShockAPI
|
|||
|
||||
if (buff == BuffID.DrillMount && !TShock.Config.VeryDangerousDoNotChangeEnableDrillContainmentUnit)
|
||||
{
|
||||
TShock.Log.ConsoleInfo("The configuration option disabling the drill containment unit will be removed at a future date.");
|
||||
TShock.Log.ConsoleInfo("As of Terraria 1.3.0.5, this option is no longer defaulted to kick DCU users.");
|
||||
TShock.Log.ConsoleInfo("This is because the DCU is now covered by TShock protection systems.");
|
||||
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue