I looked around for command for config for writing in it but everything was based on the wrong format i been looking for i tryed many different type and started my class file over a few times. so here is part of my config.yml Code: messages1: hello world messages2: greetings i need the command like /<command> <message1> <msg> so it changes the msg thats in the config this is being made on a different class not the main class help would be much appreciated Thank you Bless_
First of all, you may want to reconsider your config structure. I don't know exactly what you're trying to do (if you explained it, we could give you some help), but maybe something like Code: hello : tank : health: 20 knight : health: 30 would be closer to what you're looking for. I could explain how to do what you asked, but I've got a feeling that there's a much better way of doing it, by restructuring the config. Now, tell us what you want to do, and we'll explain how to do it simply.
ok. I'm still not sure what you need, but... it would be config.set (node, value); like config.set ("Node2", "my.node.here");