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)
|
if (gadget instanceof KitSelectorGadget)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (Player player : UtilServer.getPlayers())
|
gadget.disableForAll();
|
||||||
gadget.disable(player);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1700,7 +1700,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
|||||||
@EventHandler(priority = EventPriority.HIGH)
|
@EventHandler(priority = EventPriority.HIGH)
|
||||||
public void disableGadgetsInGame(GadgetEnableEvent event)
|
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.setShowMessage(false);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user