jakegut / SimplePaintball

Simple Paintball Plugin for Spigot 1.14
https://www.spigotmc.org/resources/simple-paintball.58308/
7 stars 5 forks source link

Error on enable plugin #6

Closed jakegut closed 4 years ago

jakegut commented 4 years ago

When enabling the plugin, all of the worlds aren't fully loaded. When getting the signs from the config, it gets the block from the location and the world so the world returns a null value and the plugin crashes.

[19:14:30 ERROR]: Error occurred while enabling Simple_PaintBall v0.3.4-alpha.1 (Is it up to date?)
java.lang.NullPointerException: null
        at com.borgdude.paintball.managers.ArenaManager.getArenas(ArenaManager.java:267) ~[?:?]
        at com.borgdude.paintball.managers.ArenaManager.getArenas(ArenaManager.java:288) ~[?:?]
        at com.borgdude.paintball.Main.onEnable(Main.java:81) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.14.4.jar:git-Paper-192]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) ~[patched_1.14.4.jar:git-Paper-192]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) ~[patched_1.14.4.jar:git-Paper-192]
        at 
jakegut commented 4 years ago

This error has not been happening for a while, closing.