MTVehicles / MinetopiaVehicles

A realistic vehicle plugin for your Minecraft server!
https://mtvehicles.nl
MIT License
90 stars 27 forks source link

Mob plugins affected #134

Closed AndrewChqng closed 1 year ago

AndrewChqng commented 1 year ago

Latest dev version 2.5.0 pre 1 creates errors regarding plugins that affect mobs https://github.com/jpenilla/squaremap-addons https://github.com/ArcanePlugins/LevelledMobs

! [Thu 16:17:33 WARN  LevelledMobs] Task #11131671 for LevelledMobs v3.9.3 b735 generated an exception
java.util.NoSuchElementException: No value present
    at java.base/java.util.Optional.orElseThrow(Optional.java:377)
    at org.bukkit.craftbukkit.v1_19_R2.util.CraftMagicNumbers.getTranslationKey(CraftMagicNumbers.java:443)
    at org.bukkit.entity.EntityType.translationKey(EntityType.java:446)
    at LevelledMobs-3.9.3 b735.jar//me.lokka30.levelledmobs.nametag.KyoriNametags.generateComponent(KyoriNametags.java:22)
    at LevelledMobs-3.9.3 b735.jar//me.lokka30.levelledmobs.nametag.NmsNametagSender.buildNametagComponent(NmsNametagSender.java:209)
    at LevelledMobs-3.9.3 b735.jar//me.lokka30.levelledmobs.nametag.NmsNametagSender.sendNametagNonAsync(NmsNametagSender.java:75)
    at LevelledMobs-3.9.3 b735.jar//me.lokka30.levelledmobs.nametag.NmsNametagSender.lambda$sendNametag$0(NmsNametagSender.java:46)
    at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101)
    at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1500)
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:488)
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1424)
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1194)
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
    at java.base/java.lang.Thread.run(Thread.java:833)
! [Thu 16:29:37 WARN  squaremap-mobs] Task #76 for squaremap-mobs v1.0.0-SNAPSHOT generated an exception
java.util.NoSuchElementException: No value present
    at java.base/java.util.Optional.orElseThrow(Optional.java:377)
    at org.bukkit.craftbukkit.v1_19_R2.util.CraftMagicNumbers.getTranslationKey(CraftMagicNumbers.java:443)
    at org.bukkit.entity.EntityType.translationKey(EntityType.java:446)
    at squaremap-mobs-1.0.0-SNAPSHOT.jar//xyz.jpenilla.squaremap.addon.mobs.task.SquaremapTask.handleMob(SquaremapTask.java:68)
    at squaremap-mobs-1.0.0-SNAPSHOT.jar//xyz.jpenilla.squaremap.addon.mobs.task.SquaremapTask.run(SquaremapTask.java:53)
    at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101)
    at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1500)
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:488)
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1424)
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1194)
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
    at java.base/java.lang.Thread.run(Thread.java:833)

Also receives error message straight after

  [Thu 16:32:26 INFO  MTVehicles] Enabling MTVehicles v2.4.3
- [Thu 16:32:26 ERROR MTVehicles] --------------------------
- [Thu 16:32:26 ERROR MTVehicles] Your Server version is not supported. The plugin will NOT load.
- [Thu 16:32:26 ERROR MTVehicles] Check the supported versions here: https://wiki.mtvehicles.eu/faq.html
- [Thu 16:32:26 ERROR MTVehicles] --------------------------
- [Thu 16:32:26 ERROR MTVehicles] Disabling the plugin (a critical bug might have occurred)...

Although /about returns

  [Thu 16:40:40 INFO ] Checking version, please wait...
  [Thu 16:40:40 INFO ] Current: git-Purpur-1913 (MC: 1.19.3)
GomorrhaDev commented 1 year ago

The problem is that the plugin do not (yet) work with the Purpur fork.

Zettovec commented 1 year ago
  1. You're using 2.4.3, not 2.5.0-pre1 (see the error message) - hence its not compatible with 1.19.3
  2. The warnings are regarding other plugins. They can't be even connected to MTVehicles in any way if the plugin is not loaded.
AndrewChqng commented 1 year ago
  1. You're using 2.4.3, not 2.5.0-pre1 (see the error message) - hence its not compatible with 1.19.3
  2. The warnings are regarding other plugins. They can't be even connected to MTVehicles in any way if the plugin is not loaded.

Hmmm I think @GomorrhaDev was right with the Pupur incompatibility, I of course tested with the 2.4.3 and 2.5.0-pre1 and swapped them in with definitely 2.5.0-pre1 causing the error

Zettovec commented 1 year ago

If you believe the pre-release is causing these issues, please, elaborate and try to describe when these issues happen. Bear in mind MTV can't be fully compatible with every single plugin out there but it may at least try. :)

AndrewChqng commented 1 year ago

MTV 2.4.3 works on my 1.19.3 server and thought I might help test out the Dev version. However it seems with 2.5.0-pre1 the plugin errors and disables itself resulting in the error messages of the opening message. It looks like only plugins affecting mobs are affected pointing to a possible issue with manipulating mobs

Zettovec commented 1 year ago

I believe this has been fixed along with #138