TrueMB / DiscordNotify

Connects your Discord Server with your Minecraft Server!
https://www.spigotmc.org/resources/discordnotify-notifications-and-utils-for-discord.94230/
GNU General Public License v2.0
7 stars 5 forks source link

...return value of "me.truemb.discordnotify.utils.UTF8YamlConfiguration.getConfigurationSection(String)" is null #13

Closed RealKomander closed 1 year ago

RealKomander commented 1 year ago

Thanks for solving a simmilar error, but now I get this every few minutes It looks like another db issue, I just don't understand what to do

[15:09:49 ERROR] [Spicord]: [JDA:JDA] One of the EventListeners had an uncaught exception
[15:09:49 ERROR]: java.lang.NullPointerException: Cannot invoke "org.simpleyaml.configuration.ConfigurationSection.getKeys(boolean)" because the return value of "me.truemb.discordnotify.utils.UTF8YamlConfiguration.getConfigurationSection(String)" is null
[15:09:49 ERROR]:       at me.truemb.discordnotify.discord.listener.DC_ChatListener.onMessageReceived(DC_ChatListener.java:79)
[15:09:49 ERROR]:       at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:483)
[15:09:49 ERROR]:       at net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:88)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:70)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:160)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:123)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:36)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:952)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:839)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:817)
[15:09:49 ERROR]:       at net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:991)
[15:09:49 ERROR]:       at net.dv8tion.jda.shaded.com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385)
[15:09:49 ERROR]:       at net.dv8tion.jda.shaded.com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276)
[15:09:49 ERROR]:       at net.dv8tion.jda.shaded.com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996)
[15:09:49 ERROR]:       at net.dv8tion.jda.shaded.com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755)
[15:09:49 ERROR]:       at net.dv8tion.jda.shaded.com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
[15:09:49 ERROR]:       at net.dv8tion.jda.shaded.com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
[15:09:49 ERROR]:       at net.dv8tion.jda.shaded.com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)
TrueMB commented 1 year ago

Could you send me the Chat Option Section of your config? grafik

RealKomander commented 1 year ago

image

RealKomander commented 1 year ago

I haven't done anything, now for some reason it only spams this:

[13:38:39 ERROR] [Spicord]: [JDA:JDA] One of the EventListeners had an uncaught exception
[13:38:39 ERROR]: java.lang.NullPointerException

I'm sure it's still related to discordnotify

TrueMB commented 1 year ago

Sorry for no response so far. My time is currently limited. And thanks for keeping me up-to-date!

I will try in the next few days, to find the issue.

Are you using Bungeecord or only Spigot?

RealKomander commented 1 year ago

I'm using velocity, all of my servers are paper

TrueMB commented 1 year ago

I am sorry once again for this long waiting time. But I think I know the problem, why this isn't working for you. Please put after serverSeperatedChat: the following brackets: {}

Leaving the whole thing blank breaks the config.

Also try the following Version.

DiscordNotify-3.3.2-dev2.zip