Luohuayu / CatServer

高性能和高兼容性的1.12.2/1.16.5/1.18.2版本Forge+Bukkit+Spigot服务端 (A high performance and high compatibility 1.12.2/1.16.5/1.18.2 version Forge+Bukkit+Spigot server)
https://catmc.org
GNU Lesser General Public License v3.0
1.95k stars 204 forks source link

[1.16.5] VehicleEntityCollisionEvent && VehicleEnterEvent doesn't work with mods #819

Open dayd21git opened 10 months ago

dayd21git commented 10 months ago

Minecraft version: 1.16.5 Build version: 1.16.5-671de43b Mods/Plugins: MrCrayfish's Vehicle, MyPlugin Description: When I use transport from the mod, the event is not called. There is no such problem with a vanilla minecart.

Code:

@EventHandler
public void VehicleEntityCollisionEvent(VehicleEntityCollisionEvent e) {
    Bukkit.getConsoleSender().sendMessage("========== VehicleEntityCollisionEvent");
}

@EventHandler
public void VehicleEnterEvent(VehicleEnterEvent e) {
    Bukkit.getConsoleSender().sendMessage("========== VehicleEnterEvent");
}

Log:

Empty

I also want to remind you about a related problem: https://github.com/Luohuayu/CatServer/issues/786

Kotori0629 commented 10 months ago

Have you tried other mods that have vehicles?

dayd21git commented 10 months ago

Have you tried other mods that have vehicles?

No, but I can try if necessary!

Kotori0629 commented 10 months ago

Have you tried other mods that have vehicles?

No, but I can try if necessary!

You can try.