Theguyhere0 / villager-defense-minigame

A Minecraft plugin that adds a fun, customizable minigame where players defend villagers against waves of monsters
GNU General Public License v3.0
6 stars 4 forks source link

When there are other plugins that increase health, the following occurs. The HP is changed so that it exceeds the original health, and although the plugin for the HP is disabled by a certain method and the original health is displayed, an error is reported when you enter the arena and leave or die in the arena. Every time you use other plugins to modify health, you will get an error. This error has a more serious error that will empty the player's original backpack items. Also, I would venture to ask whether it is reasonable to report errors in this way. #176

Open Cqmmls opened 11 months ago

Cqmmls commented 11 months ago

[15:15:22 ERROR]: Could not pass event LeaveArenaEvent to VillagerDefense v1.2.9 java.lang.IllegalArgumentException: Health must be between 0 and 20.0, but was 22.799999237060547. (attribute base value: 20.0, player: Cqmmls) at org.bukkit.craftbukkit.v1_17_R1.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:110) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at me.theguyhere.villagerdefense.plugin.listeners.ArenaListener.onLeave(ArenaListener.java:488) ~[VillagerDefense-1.2.9.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor214.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at net.tonimatasdev.perworldplugins.api.PerWorldRegisteredListener.callEvent(PerWorldRegisteredListener.java:68) ~[PerWorldPlugins-1.4.4.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at me.theguyhere.villagerdefense.plugin.game.models.Tasks$11.lambda$run$0(Tasks.java:537) ~[VillagerDefense-1.2.9.jar:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1598) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:537) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1514) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1306) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[patched_1.17.1.jar:git-Sugarcane-1.17.1/dev-115] at java.lang.Thread.run(Thread.java:833) ~[?:?]

Theguyhere0 commented 11 months ago

Hello, thanks for the bug report. In the future, please use the bug report template to keep the title short and describe the bug in the comments. I'll take a look at this and see if this affects the new version, good to know if there are issue when working with other plugins.