Deprecate DCU disable; default to on

This commit is contained in:
Lucas Nicodemus 2015-07-14 04:21:12 -06:00
parent ba74a9d740
commit b922d8722e
2 changed files with 8 additions and 1 deletions

View file

@ -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;

View file

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