Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.21 Update? #8

Open
HoboBIll opened this issue Jul 10, 2024 · 0 comments
Open

1.21 Update? #8

HoboBIll opened this issue Jul 10, 2024 · 0 comments

Comments

@HoboBIll
Copy link

Problem

Just tried this plugin out on my server and im having some issues (Server is on 1.21 paper). I know that 1.21 isn't officially supported so didn't really expect anything to work. But ironically if a totem is in a players hotbar the plugin will automatically use it. But if its in there inventory it doesn't register it and throws out this error:

Logs

[15:41:57 ERROR]: Could not pass event EntityDamageEvent to AutoTotem v1.0  
java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.ItemStack.getType()" because the return value of "org.bukkit.inventory.Inventory.getItem(int)" is null  
at AutoTotem-1.0.jar/systems.autototem.event.PlayerDeath.hasPlayerGotTotem(PlayerDeath.java:55) ~[AutoTotem-1.0.jar:?]  
at AutoTotem-1.0.jar/systems.autototem.event.PlayerDeath.onPlayerDamage(PlayerDeath.java:37) ~[AutoTotem-1.0.jar:?]  
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor15.execute(Unknown Source) ~[?:?]  
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]  
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:1.21-36-dd31654]  
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]  
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.21.jar:1.21-36-dd31654]  
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.jar:1.21-36-dd31654]  
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]  
at org.bukkit.craftbukkit.event.CraftEventFactory.callEvent(CraftEventFactory.java:267) ~[paper-1.21.jar:1.21-36-dd31654]  
at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1200) ~[paper-1.21.jar:1.21-36-dd31654]  
at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1190) ~[paper-1.21.jar:1.21-36-dd31654]  
at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:1180) ~[paper-1.21.jar:1.21-36-dd31654]  
at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:1083) ~[paper-1.21.jar:1.21-36-dd31654]  
at org.bukkit.craftbukkit.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:1234) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.entity.LivingEntity.actuallyHurt(LivingEntity.java:2280) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.entity.player.Player.actuallyHurt(Player.java:1092) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1476) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.entity.player.Player.hurt(Player.java:1001) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.level.ServerPlayer.hurt(ServerPlayer.java:1204) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.entity.LivingEntity.causeFallDamage(LivingEntity.java:2081) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.entity.player.Player.causeFallDamage(Player.java:1736) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.level.block.Block.fallOn(Block.java:459) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.entity.Entity.checkFallDamage(Entity.java:1732) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.world.entity.LivingEntity.checkFallDamage(LivingEntity.java:410) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.level.ServerPlayer.doCheckFallDamage(ServerPlayer.java:1648) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleMovePlayer(ServerGamePacketListenerImpl.java:1549) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket.handle(ServerboundMovePlayerPacket.java:34) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Pos.handle(ServerboundMovePlayerPacket.java:75) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:36) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1478) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1456) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1449) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1408) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1415) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1260) ~[paper-1.21.jar:1.21-36-dd31654]  
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.jar:1.21-36-dd31654]  
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

This is such a dope plugin and I look forward for its update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant