diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 0e2c9961..b72030c9 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3035,6 +3035,12 @@ namespace TShockAPI return false; } + if (type == BuffID.DrillMount) + { + TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled."); + return true; + } + args.Player.SendData(PacketTypes.PlayerAddBuff, "", id); return true; } @@ -3328,8 +3334,15 @@ namespace TShockAPI { args.TPlayer.buffTime[i] = 0; } + + if (buff == BuffID.DrillMount) + { + 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); return true; }