Only disable costumes

This commit is contained in:
Sam 2017-09-10 23:29:54 +01:00 committed by cnr
parent 134039bf79
commit 52adaf45a2
2 changed files with 2 additions and 3 deletions

View File

@ -1142,8 +1142,7 @@ public class GadgetManager extends MiniPlugin
if (gadget instanceof KitSelectorGadget)
continue;
for (Player player : UtilServer.getPlayers())
gadget.disable(player);
gadget.disableForAll();
}
}
}

View File

@ -1700,7 +1700,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
@EventHandler(priority = EventPriority.HIGH)
public void disableGadgetsInGame(GadgetEnableEvent event)
{
if (_game != null && _game.InProgress() && _game.GadgetsDisabled)
if (_game != null && _game.InProgress() && _game.GadgetsDisabled && event.getGadget().getGadgetType() == GadgetType.COSTUME)
{
event.setShowMessage(false);
event.setCancelled(true);