From dd58ab8d151d7054b5f1addf1abcce4d3653b79f Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 5 Jul 2015 14:27:46 -0600 Subject: [PATCH] Force disable the DCU --- TShockAPI/GetDataHandlers.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; }