Allows multiple balloons
This commit is contained in:
parent
5e420a20d8
commit
78510ffbbf
@ -31,7 +31,7 @@ public class BalloonsPage extends GadgetPage
|
|||||||
{
|
{
|
||||||
addGadget(gadget, slot);
|
addGadget(gadget, slot);
|
||||||
|
|
||||||
if (getPlugin().getGadgetManager().getActive(getPlayer(), GadgetType.BALLOON) == gadget)
|
if (gadget.isActive(getPlayer()))
|
||||||
addGlow(slot);
|
addGlow(slot);
|
||||||
|
|
||||||
slot++;
|
slot++;
|
||||||
|
@ -53,8 +53,12 @@ public abstract class BalloonGadget extends Gadget
|
|||||||
@Override
|
@Override
|
||||||
public void disableCustom(Player player, boolean message)
|
public void disableCustom(Player player, boolean message)
|
||||||
{
|
{
|
||||||
|
if (!_active.remove(player))
|
||||||
|
return;
|
||||||
|
|
||||||
removePlayerBalloon(player);
|
removePlayerBalloon(player);
|
||||||
UtilPlayer.message(player, F.main("Gadget", "You despawned a " + F.elem(getName())) + "!");
|
if (message)
|
||||||
|
UtilPlayer.message(player, F.main("Gadget", "You despawned a " + F.elem(getName())) + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean addPlayerBalloon(Player player)
|
private boolean addPlayerBalloon(Player player)
|
||||||
|
Loading…
Reference in New Issue
Block a user