Removed obsolete DCU config options
This commit is contained in:
parent
03eb47596e
commit
86e741a3cd
2 changed files with 0 additions and 22 deletions
|
|
@ -446,10 +446,6 @@ namespace TShockAPI
|
||||||
[Description("Whether we should limit only the max failed login requests, or all login requests")]
|
[Description("Whether we should limit only the max failed login requests, or all login requests")]
|
||||||
public bool RESTLimitOnlyFailedLoginRequests = true;
|
public bool RESTLimitOnlyFailedLoginRequests = true;
|
||||||
|
|
||||||
[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 = true;
|
|
||||||
|
|
||||||
[Description("Show backup autosave messages.")] public bool ShowBackupAutosaveMessages = true;
|
[Description("Show backup autosave messages.")] public bool ShowBackupAutosaveMessages = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -3237,15 +3237,6 @@ namespace TShockAPI
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
args.Player.SendData(PacketTypes.PlayerAddBuff, "", id);
|
args.Player.SendData(PacketTypes.PlayerAddBuff, "", id);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -3539,15 +3530,6 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
args.TPlayer.buffTime[i] = 0;
|
args.TPlayer.buffTime[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
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