From f7d3dfd61d70c6a23b48651b6bf1961dce0d7d89 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 20 Dec 2013 18:57:13 +1100 Subject: [PATCH] Show severe error for missing forced error, but don't crash --- proxy/src/main/java/net/md_5/bungee/conf/Configuration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/conf/Configuration.java b/proxy/src/main/java/net/md_5/bungee/conf/Configuration.java index 6aedbfd7..5b132345 100644 --- a/proxy/src/main/java/net/md_5/bungee/conf/Configuration.java +++ b/proxy/src/main/java/net/md_5/bungee/conf/Configuration.java @@ -112,7 +112,10 @@ public class Configuration implements ProxyConfig Preconditions.checkArgument( servers.containsKey( listener.getFallbackServer() ), "Fallback server %s is not defined", listener.getFallbackServer() ); for ( String server : listener.getForcedHosts().values() ) { - Preconditions.checkArgument( servers.containsKey( server ), "Forced host server %s is not defined", server ); + if ( !servers.containsKey( server ) ) + { + ProxyServer.getInstance().getLogger().log( Level.SEVERE, "Forced host server {0} is not defined", server ); + } } } }