Remove disguises when players switch to Seeker
This commit is contained in:
parent
0607355ee0
commit
6db79c3ca5
@ -17,6 +17,7 @@ import mineplex.core.common.util.UtilParticle.ViewDist;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.common.util.UtilTime;
|
||||
import mineplex.core.disguise.disguises.DisguiseBase;
|
||||
import mineplex.core.itemstack.ItemStackFactory;
|
||||
import mineplex.core.packethandler.IPacketHandler;
|
||||
import mineplex.core.packethandler.PacketInfo;
|
||||
@ -1141,6 +1142,12 @@ public class HideSeek extends TeamGame
|
||||
if (form != null)
|
||||
form.Remove();
|
||||
|
||||
// Remove Disguise
|
||||
DisguiseBase disguise = Manager.GetDisguise().getActiveDisguise(player);
|
||||
if (disguise != null)
|
||||
{
|
||||
Manager.GetDisguise().undisguise(disguise);
|
||||
}
|
||||
// Kit
|
||||
SetKit(player, GetKits()[5], false);
|
||||
GetKits()[5].ApplyKit(player);
|
||||
|
Loading…
Reference in New Issue
Block a user