VehicleMoveEvent not working in Spigot 1.12.2

Discussion in 'Plugin Development' started by FaTaLxGaming, Dec 18, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    FaTaLxGaming

    Previously before updating to Spigot 1.12.2, I was using PlayerMoveEvent on Spigot 1.8. It would track the player movement while the player was riding a pig. After updating the plugin to 1.12, it doesn't track player movement. So my first action was to use VehicleMoveEvent. It didn't fix the problem and after a day of trying to find a fix, I decided to try testing all player movements and broadcast a random message. I did the same with VehicleMoveEvent.
    Code:
    @EventHandler
    public void onVehicleMove(VehicleMoveEvent e) {
        Bukkit.getServer().broadcastMessage("pig move");
    }
    I started up my minigame and sure enough, no messages came through when I was a passenger on the pig. I did the same but with a player move event. When I was walking around, it worked. But when I was a passenger on the pig, it sent nothing.

    Extra:
    - The pig is being moved via setVelocity()
     
  2. Offline

    Zombie_Striker

    @FaTaLxGaming
    Odd. You should report this bug to spigot. Maybe they can fix this in the upcoming 1.13 update.
     
  3. Online

    timtower Administrator Administrator Moderator

  4. Offline

    FaTaLxGaming

    Yes. I know it is because the PlayerMoveEvent outputs "player move" when I move but stops when I'm on the pig.
     
Thread Status:
Not open for further replies.

Share This Page