xF3d33 / UltimateTeams

https://modrinth.com/plugin/ultimate-teams
GNU General Public License v3.0
5 stars 4 forks source link

Error #2

Closed GesooDiNazzZ closed 1 year ago

GesooDiNazzZ commented 1 year ago

[14:58:39 ERROR]: Could not pass event EntityDamageByEntityEvent to UltimateTeams v2.0.2 java.lang.NullPointerException: Cannot invoke "dev.xf3d3.ultimateteams.models.Team.getTeamMembers()" because "allyTeam" is null at dev.xf3d3.ultimateteams.listeners.PlayerDamageEvent.onPlayerHit(PlayerDamageEvent.java:67) ~[UltimateTeams-2.0.2.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor138.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.17.1.jar:git-Pufferfish-22] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[patched_1.17.1.jar:git-Pufferfish-22] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Pufferfish-22] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[patched_1.17.1.jar:git-Pufferfish-22] at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:247) ~[patched_1.17.1.jar:git-Pufferfish-22] at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1122) ~[patched_1.17.1.jar:git-Pufferfish-22] at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:998) ~[patched_1.17.1.jar:git-Pufferfish-22] at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:954) ~[patched_1.17.1.jar:git-Pufferfish-22] at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:1154) ~[patched_1.17.1.jar:git-Pufferfish-22] at net.minecraft.world.entity.LivingEntity.damageEntity0(LivingEntity.java:2086) ~[app:?] at net.minecraft.world.entity.player.Player.damageEntity0(Player.java:1018) ~[app:?] at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1358) ~[app:?] at net.minecraft.world.entity.player.Player.hurt(Player.java:925) ~[app:?] at net.minecraft.server.level.ServerPlayer.hurt(ServerPlayer.java:998) ~[app:?] at net.minecraft.world.entity.player.Player.attack(Player.java:1261) ~[app:?] at net.minecraft.server.level.ServerPlayer.attack(ServerPlayer.java:2019) ~[app:?] at net.minecraft.server.network.ServerGamePacketListenerImpl$5.onAttack(ServerGamePacketListenerImpl.java:2493) ~[app:?] at net.minecraft.network.protocol.game.ServerboundInteractPacket$1.dispatch(ServerboundInteractPacket.java:24) ~[app:?] at net.minecraft.network.protocol.game.ServerboundInteractPacket.dispatch(ServerboundInteractPacket.java:80) ~[app:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleInteract(ServerGamePacketListenerImpl.java:2420) ~[app:?] at net.minecraft.network.protocol.game.ServerboundInteractPacket.handle(ServerboundInteractPacket.java:67) ~[app:?] at net.minecraft.network.protocol.game.ServerboundInteractPacket.handle(ServerboundInteractPacket.java:12) ~[app:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[app:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Pufferfish-22] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[app:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[app:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1428) ~[patched_1.17.1.jar:git-Pufferfish-22] at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:192) ~[patched_1.17.1.jar:git-Pufferfish-22] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[app:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1406) ~[patched_1.17.1.jar:git-Pufferfish-22] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1399) ~[patched_1.17.1.jar:git-Pufferfish-22] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:132) ~[app:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1377) ~[patched_1.17.1.jar:git-Pufferfish-22] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1288) ~[patched_1.17.1.jar:git-Pufferfish-22] at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:321) ~[patched_1.17.1.jar:git-Pufferfish-22] at java.lang.Thread.run(Thread.java:833) ~[?:?]

xF3d33 commented 1 year ago

fixed in https://github.com/xF3d33/UltimateTeams/commit/1e41a32feaf5b033ce56e27d49877cc4f1c85af0