Minecraft Plugin NullPointerException is not working?

Li
- in Plugins
3

Have a problem and although I have programmed a Minecraft plugin 1.14.4. I wanted to see if something was entered in the config and if so, then teleport the player (coordinates in the config) and if no the player spend a message.

I made a trycatch block around the two things, but it does not work. I only get the error message that the config is "null".

Code:

try {
. E.getPlayer () teleport ((Location) main.getConfig () get ( "game.location.lobby").);
} catch (NullPointerException e1) {
e.getPlayer (). SendMessage (main.prefix + "§cThe plugin is not set up yet!");
}

Error message (type):

Could not pass event PlayerJoinEvent to Plugin_name v0.0.1-a1
org.bukkit.event.EventException: null

Of

I do not know the answer to your question, but I can help you, I think. Take a look at this https://discord.gg/....gg/wu4Y78 (Cloudnet). There are quite a few minecraft developers who can help you. They really have a clue. There you will probably get faster and better answers (always on it) than here.

Li

OK thanks

Ju

1.) Please post the entire code (at least the code of the whole event)
2.) Please post the entire error message
3.) completely * (not consequential)