Why do I get an error message (Java - Minecraft)?

Ba
5

I've tried to write "PlayerInteractEvent" instead of "BlockPlaceEvent" and "BlockBreakEvent", all well and good, everything works, but it's the same mistake…

I can fix one or two mistakes, but I'm also an amateur xD

Error:

Code:

Co

The error you get says that there's an error with the PlayerInteractEvent. But since I can't find a PlayerInteractEvent in the code because you linked, I wonder if you are looking for the error in the right place at all.

Please feel free to send me the code of the PlayerInteractEvent.

Greeting _sq

Ba

I wrote that I tried "PlayerInteractEvent" instead of the other two, but that's exactly the same thing

Co

I'm sorry that I have to say that, but if the error says that there's an error with the PlayerInteractEvent, then such an event must exist somewhere, otherwise it makes 0 sense!

If you want to continue this conversation respectfully, please feel free to reply to my message.

Greeting _sq

Lo

The error is in Listeners.FreeItems.handleNavigatorOpener (FreeItems.java:79)

[Line 79]. There's a null pointer exception

Ba

Fixed about 1 hour ago. Unbelievable. I was able to fix it myself