warn if serverlistping happens before plugin is loaded

This commit is contained in:
ajgeiss0702
2022-01-13 13:34:45 -07:00
parent ff5e68fcc3
commit a8812d9b28
@@ -201,6 +201,7 @@ public class SpigotMain extends JavaPlugin implements PluginMessageListener,List
@EventHandler(priority = EventPriority.HIGH)
public void onServerPing(ServerListPingEvent e) {
if(config == null) getLogger().warning("Server ping before plugin load!");
if(!config.getBoolean("take-over-motd-for-whitelist")) return;
if(!Bukkit.hasWhitelist()) return;