mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
Validate forced hosts config on reload
This commit is contained in:
parent
f0e1625078
commit
b713ccff10
@ -110,6 +110,10 @@ public class Configuration implements ProxyConfig
|
||||
{
|
||||
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() );
|
||||
for ( String server : listener.getForcedHosts().values() )
|
||||
{
|
||||
Preconditions.checkArgument( servers.containsKey( server ), "Forced host server %s is not defined", server );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user