only warn, dont also error
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user