From 3aef35ccbb09325a331e061135488b273bab46fd Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 2 Jul 2013 19:43:48 +1000 Subject: [PATCH] Warn about non existant fallback --- proxy/src/main/java/net/md_5/bungee/config/Configuration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main/java/net/md_5/bungee/config/Configuration.java b/proxy/src/main/java/net/md_5/bungee/config/Configuration.java index e03a4593..a8ef0694 100644 --- a/proxy/src/main/java/net/md_5/bungee/config/Configuration.java +++ b/proxy/src/main/java/net/md_5/bungee/config/Configuration.java @@ -84,6 +84,7 @@ public class Configuration for ( ListenerInfo listener : listeners ) { Preconditions.checkArgument( servers.containsKey( listener.getDefaultServer() ), "Default server %s is not defined", listener.getDefaultServer() ); + Preconditions.checkArgument( servers.containsKey( listener.getFallbackServer() ), "Fallback server %s is not defined", listener.getFallbackServer() ); } } }