YAML format - ScreamingSandals/SimpleInventories GitHub Wiki
YAML Format
This library use .yml files for guis!
How to load .yml? (For Developers)
Just load it as any other .yml configuration file!
import org.screamingsandals.simpleinventories.SimpleInventories;
import org.screamingsandals.simpleinventories.inventory.Options;
...
Options options = new Options(myAwesomePlugin);
// some configuration
SimpleInventories format = new SimpleInventories(options);
try {
format.loadFromDataFolder(plugin.getDataFolder(), "gui.yml");
} catch (Exception e) {
e.printStackTrace();
}
...
Gui.yml example (For Server Owners)
If you are not sure if your format is correct, then visit http://www.yamllint.com/ and paste here your code!
data:
- stack: DIAMOND_CHESTPLATE;1;Armor
items:
- myCustomVariable: myCustomValue
myCustomVariable2: myCustomValue2
stack: # another item stack
...
- stack: # another item stack
...
items: # childs
- stack: # another child item stack
...
items: # childs
...