Store config in a case insensitive map

This commit is contained in:
md_5 2013-05-26 12:25:46 +10:00
parent 828cebcc4b
commit 9d841bb91a

View File

@ -21,6 +21,7 @@ import net.md_5.bungee.api.config.ConfigurationAdapter;
import net.md_5.bungee.api.config.ListenerInfo;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.config.TexturePackInfo;
import net.md_5.bungee.util.CaseInsensitiveMap;
import org.yaml.snakeyaml.DumperOptions;
import org.yaml.snakeyaml.Yaml;
@ -48,7 +49,10 @@ public class YamlConfig implements ConfigurationAdapter
if ( config == null )
{
config = new HashMap();
config = new CaseInsensitiveMap();
} else
{
config = new CaseInsensitiveMap( config );
}
} catch ( IOException ex )
{