Bukkit listeners are not called?

Br
- in Plugins
15

I'm currently working on programming a plugin with Java for a Minecraft server.

However, the listeners are not called, which breaks the plugin.

The listeners do not work on any server, only on the server on which this plugin is to be used. I have no idea whether there's an incorrect setting or something, at least the server * currently * has a paper spigot, 3GB RAM and 4 cores available, it could be because of it or my program. Here are a few code pictures. There are no errors, the event is simply not called.

The main is called, you can see that on other console editions.

As the picture suggests, the code that is in the PlayerListener class is not called here. I also checked the accuracy of the imports several times, as I said, it works on my local test server.

MfG, I appreciate any help.

Ka

If it really just didn't work on one server, it would be extremely strange. I don't know my way around but maybe it could be because the server is running Paper Spigot and not the normal one?

Otherwise I would debug the plugin on the server in your place…

Br

Thanks for your quick answer, but the server has the same Paperspigot file as on my test server because I uploaded it there.

For debugging, I would have asked exactly what you mean Kind regards

Ka

I mean that you are debugging the plugin on the server on which it does not work, so look at initialization to see how far it goes, whether the event is registered, etc.

Br

Oh, thanks for the tip, however, that was the first thing I did and it goes on, despite the register the events are not called.

Ka

Hmm… I'm not quite there anymore but could it be that the event is overwritten by another plugin or something?

Br

Thanks for this interesting tip, I'll check it out soon.

Br

Ok, I made each plugin on the test server as it did on the server and it worked, or the listeners were called, which means that none of the plugins blocked these events.

Sh

Are there mistakes? On which servers does it work and where not?

Br

No, there are no errors and it works on my local test server, with 16 GB Ram 6 cores and the same server file as on the server on which it does not work.

Sh

What are the other plugins? Complications may arise.

Br

The following plugins are on the server:

The plugin itself (KissenCB \ /)
The APIS (https://github.com/Plugrol/KissenPvP)
Multiverse
PermissionsEx
PlotSquared
ViaVersion
WorldEdit / Guard

Sh

Take out all other plugins. (Which is not needed) and try it.

Br

Thanks for this tip, but it wasn't exactly the error, the real error was that an API was missing, which I pulled over after this test

Sh

Unfortunately there was no other visible on the pictures except the Spigot API.

Br

Yes, the errors didn't come because I made a try {} catch (Exception ignored) {} around it, at least it works now, thanks to everyone who helped. (gold human 409 and).