Coder Social home page Coder Social logo

gravestonesplus's People

Contributors

bencodez avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gravestonesplus's Issues

Multiple errors.

I running this plugin on a 1.19 minecrafts server and see multiple error messages in the logfile.

The first was, as a player died in the nether:

[06:51:23 WARN]: Exception in thread "Timer-9" java.lang.IllegalArgumentException: Cannot measure distance between Sushi Cafe and Sushi Cafe_nether
[06:51:23 WARN]:        at org.bukkit.Location.distanceSquared(Location.java:510)
[06:51:23 WARN]:        at org.bukkit.Location.distance(Location.java:493)
[06:51:23 WARN]:        at GraveStonesPlus.jar//com.bencodez.gravestonesplus.graves.Grave.checkGlowing(Grave.java:257)
[06:51:23 WARN]:        at GraveStonesPlus.jar//com.bencodez.gravestonesplus.GraveStonesPlus$1.run(GraveStonesPlus.java:146)
[06:51:23 WARN]:        at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
[06:51:23 WARN]:        at java.base/java.util.TimerThread.run(Timer.java:516)

grafik

As the player trys to get his stuff back, this error occured:

 [06:56:09 ERROR]: Could not pass event BlockBreakEvent to GraveStonesPlus v1.3.2
java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.ItemStack.getAmount()" because "item" is null
        at com.bencodez.gravestonesplus.advancedcore.api.user.AdvancedCoreUser.giveItem(AdvancedCoreUser.java:495) ~[GraveStonesPlus.jar:?]
        at com.bencodez.gravestonesplus.graves.Grave.claim(Grave.java:401) ~[GraveStonesPlus.jar:?]
        at com.bencodez.gravestonesplus.listeners.PlayerBreakBlock.onBlockBreak(PlayerBreakBlock.java:98) ~[GraveStonesPlus.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor71.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:git-Paper-58]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:664) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.level.ServerPlayerGameMode.destroyBlock(ServerPlayerGameMode.java:373) ~[?:?]
        at net.minecraft.server.level.ServerPlayerGameMode.destroyAndAck(ServerPlayerGameMode.java:332) ~[?:?]
        at net.minecraft.server.level.ServerPlayerGameMode.handleBlockBreakAction(ServerPlayerGameMode.java:296) ~[?:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerAction(ServerGamePacketListenerImpl.java:1802) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:42) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.a(ServerboundPlayerActionPacket.java:15) ~[?:?]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.jar:git-Paper-58]
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1358) ~[paper-1.19.jar:git-Paper-58]
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:183) ~[paper-1.19.jar:git-Paper-58]
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1335) ~[paper-1.19.jar:git-Paper-58]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1328) ~[paper-1.19.jar:git-Paper-58]
        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
        at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1306) ~[paper-1.19.jar:git-Paper-58]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1191) ~[paper-1.19.jar:git-Paper-58]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) ~[paper-1.19.jar:git-Paper-58]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]

grafik

Now we have a user who lost all his stuff and i can't do anything about it at the moment.

running Paper version git-Paper-58 (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT) (Git: e294802)

Nasty Case: Waterfall and Gravestones

I found a nasty case where when one of my players "out ran" the water fall and died from falling damage. Then the waterfall "washed" the grave's head away. Making the grave invalid and the player losing their items.

Washing the grave away: The head pops off from the flowing water. Invalidating the grave.

Nether Beds

When you place a bed in the nether and sleep in it it kills you and destroys your grave

Head is missing (How do I recover)

Hello again!

I got another bug. The grave spawned and saved itself to the config file, but the head is missing. Because of that, the grave could not be broken. Here is a screenshot:
Screenshot 2023-10-18 191438

Is there anyway to recover the items? They are in the config file, but it would be difficult to remake them all by hand. If I view the grave with the command and click on a item, the inventory closes instantly.

I am a big fan of your plugin! Thank you for your help!
Nikogenia

btw, I am on the latest version of the spigot page ...

Grave break problem

If a non-player entity breaks the gravestone, it just returns and doesn't even drop the loot.
Some datapacks have mobs which can do this, which is problematic because now if a player dies to this mob, it will break their grave and the items will all be deleted.
so I think you should just add a check for if it's not a player but a grave just cancel event

Random Error Message (Not Critical)

First of all, a fantastic plugin! You did a really good job here! But I get the same error message regularly in the console. Even tho I didn't notice any problems, I think it could be useful to report it. So here is the error:

[22:46:25 WARN]: Exception in thread "Timer-2" java.lang.NullPointerException: Cannot invoke "org.bukkit.entity.Entity.removeMetadata(String, org.bukkit.plugin.Plugin)" because "entity" is null
[22:46:25 WARN]: 	at GraveStonesPlus.jar//com.bencodez.gravestonesplus.advancedcore.api.misc.MiscUtils.setEntityMeta(MiscUtils.java:458)
[22:46:25 WARN]: 	at GraveStonesPlus.jar//com.bencodez.gravestonesplus.graves.Grave.checkGlowing(Grave.java:306)
[22:46:25 WARN]: 	at GraveStonesPlus.jar//com.bencodez.gravestonesplus.GraveStonesPlus$1.run(GraveStonesPlus.java:182)
[22:46:25 WARN]: 	at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
[22:46:25 WARN]: 	at java.base/java.util.TimerThread.run(Timer.java:516)

Maybe it could be useful for you! Greetings Nikogenia

Information armor stands don't go away.

When a player receives their items, i noticed that the information armor stands will not go away. I have to kill them with /minecraft:kill @e[type=minecraft:armor_stand]
2021-12-17_22 27 22
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.