only warn, dont also error

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