Put colours in default motd to try and force quoting in the dumped yaml
This commit is contained in:
parent
8a5d8a57f7
commit
8f961c9d4e
@ -170,7 +170,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 );
|
||||||
String motd = ChatColor.translateAlternateColorCodes( '&', get( "motd", "Just another BungeeCord - Forced Host", val ) );
|
String motd = ChatColor.translateAlternateColorCodes( '&', get( "motd", "&1Just another BungeeCord - Forced Host", val ) );
|
||||||
boolean restricted = get( "restricted", false, val );
|
boolean restricted = get( "restricted", false, val );
|
||||||
InetSocketAddress address = Util.getAddr( addr );
|
InetSocketAddress address = Util.getAddr( addr );
|
||||||
ServerInfo info = ProxyServer.getInstance().constructServerInfo( name, address, motd, restricted );
|
ServerInfo info = ProxyServer.getInstance().constructServerInfo( name, address, motd, restricted );
|
||||||
@ -195,7 +195,7 @@ public class YamlConfig implements ConfigurationAdapter
|
|||||||
|
|
||||||
for ( Map<String, Object> val : base )
|
for ( Map<String, Object> val : base )
|
||||||
{
|
{
|
||||||
String motd = get( "motd", "Another Bungee server", val );
|
String motd = get( "motd", "&1Another Bungee server", val );
|
||||||
motd = ChatColor.translateAlternateColorCodes( '&', motd );
|
motd = ChatColor.translateAlternateColorCodes( '&', motd );
|
||||||
|
|
||||||
int maxPlayers = get( "max_players", 1, val );
|
int maxPlayers = get( "max_players", 1, val );
|
||||||
|
Loading…
Reference in New Issue
Block a user