Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5562

Entering a boat triggers "VehicleExitEvent"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Windows 10 using latest Spigot

    • This server is running CraftBukkit version git-Spigot-c574e08-d70084e (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
    • Yes

      When you enter a boat, for some reason it instantly triggers a VehicleExitEvent. This behavior can be tested with the following (Kotlin) code:

       

      @Plugin(name = "TestPlugin", version = "1.0")
      class TestPlugin : JavaPlugin(), Listener {
          override fun onEnable() {
              super.onEnable()
              server.pluginManager.registerEvents(this, this)
          }
      
          @EventHandler
          fun onVehicleExit(event: VehicleExitEvent) {
                  server.logger.info("Vehicle exit called for %s".format(event.exited.type.name))
          }
      }
      

       

      When you enter a boat, it instantly calls a VehicleExitEvent for some reason. This does not happen with entities like Minecarts, and I don't expect this to happen when entering a boat

            Unassigned Unassigned
            KoekenMeneer KoekenMeneer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: