Bradydawg / ServerListMotd

ServerListMOTD! Custom MOTD and Playercount Messages!
https://www.spigotmc.org/resources/serverlistmotd-revitalized.83402/
GNU General Public License v3.0
3 stars 2 forks source link

NullPointerException after Spigot update #5

Open SlimeDog opened 3 years ago

SlimeDog commented 3 years ago

SLM-Spigot 1.2.7 fails to load with Spigot 1.16.5-3070 or greater. Issue confirmed with

SLM-Spigot 1.2.7 works fine with

ProtocolLib 4.6.1-b501 ServerListMotdSpigot 1.2.7

No changes to configuration, only Spigot update.

Issue

NullPointerException on server start-up. Caused by interaction with Spigot update. Issue did not occur on Spigot 1.16.5-3069.

[21:45:21] [Server thread/INFO]: [ServerListMotdSpigot] Enabling ServerListMotdSpigot v1.2.7
[21:45:21] [Server thread/ERROR]: Error occurred while enabling ServerListMotdSpigot v1.2.7 (Is it up to date?)
java.lang.NullPointerException: null
        at eu.kennytv.serverlistmotd.spigot.listener.PacketListener.<init>(PacketListener.java:30) ~[?:?]
        at eu.kennytv.serverlistmotd.spigot.SettingsSpigot.<init>(SettingsSpigot.java:37) ~[?:?]
        at eu.kennytv.serverlistmotd.spigot.ServerListMotdSpigotPlugin.<init>(ServerListMotdSpigotPlugin.java:25) ~[?:?]
        at eu.kennytv.serverlistmotd.spigot.ServerListMotdSpigotBase.onEnable(ServerListMotdSpigotBase.java:14) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:493) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:407) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:555) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:257) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:928) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:273) ~[spigot-1.16.5-3073.jar:3073-Spigot-9fb885e-32e4086]
        at java.lang.Thread.run(Thread.java:834) [?:?]