Setting velocity doesn't work

Discussion in 'Spigot Plugin Development' started by Proudyy, Aug 14, 2018.

  1. Hey,
    i'm sitting on a balloon plugin.
    To do that i sat a fallingblock on a hidden bat and leashed the bat with the player.
    Now i'm done with this and i have to set the velocity for the leashevent.
    That velocity doesn't gets set obviously...
    The bat flies like it wants to, so help me, please!
    This is the Listener Class:
    The Map which contains the players balloons is in a class called LobbyItems and the line is the following:
    public static Map<Player, Balloon> balloons = new HashMap<>();
    And this is the balloon class which creates the balloon itself: