Only disable costumes
This commit is contained in:
parent
134039bf79
commit
52adaf45a2
@ -1142,8 +1142,7 @@ public class GadgetManager extends MiniPlugin
|
||||
if (gadget instanceof KitSelectorGadget)
|
||||
continue;
|
||||
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
gadget.disable(player);
|
||||
gadget.disableForAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user