Removed commented code
This commit is contained in:
parent
78510ffbbf
commit
f25c592a6d
@ -117,49 +117,4 @@ public abstract class BalloonGadget extends Gadget
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*protected boolean canSpawnBalloon(Player player)
|
|
||||||
{
|
|
||||||
if (PLAYER_BALLOONS.containsKey(player.getUniqueId()))
|
|
||||||
{
|
|
||||||
List<UtilBalloons> balloonGadgets = PLAYER_BALLOONS.get(player.getUniqueId());
|
|
||||||
return balloonGadgets.size() < 10;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void addPlayerBalloon(Player player)
|
|
||||||
{
|
|
||||||
if (canSpawnBalloon(player))
|
|
||||||
{
|
|
||||||
PLAYER_BALLOONS.computeIfAbsent(player.getUniqueId(), list -> new ArrayList<>());
|
|
||||||
List<UtilBalloons> balloonGadgets = PLAYER_BALLOONS.get(player.getUniqueId());
|
|
||||||
balloonGadgets.add(new UtilBalloons(player, _balloon));
|
|
||||||
PLAYER_BALLOONS.put(player.getUniqueId(), balloonGadgets);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void removePlayerBalloon(Player player)
|
|
||||||
{
|
|
||||||
List<UtilBalloons> balloonGadgets = PLAYER_BALLOONS.computeIfPresent(player.getUniqueId(), (uuid, list) -> list);
|
|
||||||
if (balloonGadgets.contains(_balloon))
|
|
||||||
{
|
|
||||||
balloonGadgets.remove(_balloon);
|
|
||||||
}
|
|
||||||
if (balloonGadgets.size() >= 1)
|
|
||||||
PLAYER_BALLOONS.put(player.getUniqueId(), balloonGadgets);
|
|
||||||
else
|
|
||||||
PLAYER_BALLOONS.remove(player.getUniqueId());
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void spawnBalloon(Player player, Entity balloon)
|
|
||||||
{
|
|
||||||
if (!canSpawnBalloon(player))
|
|
||||||
{
|
|
||||||
// TODO MESSAGE
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
addPlayerBalloon(player, _balloon);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user