Merge branch 'general-devel' of https://github.com/NyxStudios/TShock into general-devel
This commit is contained in:
commit
e8b4cf1aa5
4 changed files with 17 additions and 2 deletions
|
|
@ -433,6 +433,9 @@ namespace TShockAPI
|
||||||
[Description("The minimum password length for new user accounts. Minimum value is 4.")]
|
[Description("The minimum password length for new user accounts. Minimum value is 4.")]
|
||||||
public int MinimumPasswordLength = 4;
|
public int MinimumPasswordLength = 4;
|
||||||
|
|
||||||
|
[Description("Enable the DCU. Very dangerous; can destroy world without consequence.")] public bool
|
||||||
|
VeryDangerousDoNotChangeEnableDrillContainmentUnit = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads a configuration file from a given path
|
/// Reads a configuration file from a given path
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -3039,6 +3039,12 @@ namespace TShockAPI
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == BuffID.DrillMount && TShock.Config.VeryDangerousDoNotChangeEnableDrillContainmentUnit)
|
||||||
|
{
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
|
|
@ -3332,7 +3338,14 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
args.TPlayer.buffTime[i] = 0;
|
args.TPlayer.buffTime[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (buff == BuffID.DrillMount && TShock.Config.VeryDangerousDoNotChangeEnableDrillContainmentUnit)
|
||||||
|
{
|
||||||
|
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
NetMessage.SendData((int) PacketTypes.PlayerBuff, -1, args.Player.Index, "", args.Player.Index);
|
NetMessage.SendData((int) PacketTypes.PlayerBuff, -1, args.Player.Index, "", args.Player.Index);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -665,7 +665,6 @@ namespace TShockAPI
|
||||||
Regions.Reload();
|
Regions.Reload();
|
||||||
Warps.ReloadWarps();
|
Warps.ReloadWarps();
|
||||||
|
|
||||||
Lighting.lightMode = 2;
|
|
||||||
ComputeMaxStyles();
|
ComputeMaxStyles();
|
||||||
FixChestStacks();
|
FixChestStacks();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2eddc7f5a2890e89f1a776d45fa8f67e60c731f4
|
Subproject commit f176cdfffc1d80b4f7e5b875ffd247e4aa6d03db
|
||||||
Loading…
Add table
Add a link
Reference in a new issue