Also make sure we get the restricted value per server
This commit is contained in:
parent
1d2afae98e
commit
5688099605
@ -151,7 +151,7 @@ public class YamlConfig implements ConfigurationAdapter
|
|||||||
Map<String, Object> val = entry.getValue();
|
Map<String, Object> val = entry.getValue();
|
||||||
String name = entry.getKey();
|
String name = entry.getKey();
|
||||||
String addr = get( "address", "localhost:25565", val );
|
String addr = get( "address", "localhost:25565", val );
|
||||||
boolean restricted = get( "restricted", false );
|
boolean restricted = get( "restricted", false, val );
|
||||||
InetSocketAddress address = Util.getAddr( addr );
|
InetSocketAddress address = Util.getAddr( addr );
|
||||||
ServerInfo info = ProxyServer.getInstance().constructServerInfo( name, address, restricted );
|
ServerInfo info = ProxyServer.getInstance().constructServerInfo( name, address, restricted );
|
||||||
ret.put( name, info );
|
ret.put( name, info );
|
||||||
|
Loading…
Reference in New Issue
Block a user