So I have YAML file with a list of addresses such as this:
Address:
127.0.0.1:
- administrator
- root
- herobrine
192.168.0.1:
- admin
- notch
- herobrine
Now when this file is edited with Bukkit's YAML methods, it will nest nodes like this:
Address:
'127':
'0':
'0':
'1':
- administrator
- root
- herobrine
'192':
'168':
'0':
'1':
- admin
- notch
- herobrine
How can I add the IP address as a single node? I'm thinking I may have to remove the dots and replace them with something with an underscore and then just replace them again when the values are read by the plugin again. And I'll do this unless there's a better way of going about this. I could leave this as is and hope it doesn't mess up much, but I intended this to be a file for Admins and I'd rather it be more readable and to have the IPs with periods. But I'll sacrifice the dots if need be.