Force disable the DCU
This commit is contained in:
parent
ceac62019c
commit
dd58ab8d15
1 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue