Hey there!
Most of you may know me for my projects GUIShop, AntiBot, Spells and even ShulkerBox. Anyways. I have quite a bit of experience with YML syntax however this one's got me stumped. I need help identifying each object inside this YML. The reason I am requesting help, is I am updating GUIShopPlus, however the reading of the config is completely different than reading it. (Hopefully someone understands what i'm talking about). I have done some digging in the SnakeYML docs but no luck >.< .
YML:
What I've tried:
So, looking at the YML, at first this is what I observed.
Each item is a list. However, the list's key, is a string? Tried removing the quotes to see if the object changed, it did. This must be a specific list. Maybe not a list at all (my assumption)?
The list is NOT a string list, or general list. It appears to be a list of keys, and values. I have tried using a list of maps, didnt appear to work either.
Each item is clearly chained. These are not independent values e.g (first.second.value). You are required to grab the list, and iterate through the values to read each one.
Here is my code I use to read the config: GitHub
You can see, I read the config quite manually. I am not using conventional methods to read this config as I cant figure out what the hell is inside this yaml! I would like to update my reading method to use proper, conventional ways inside snakeyml, as the yaml DOES come up as valid when tested. If I can figure out how to do this, I can easily port the method over for saving as well. If someone can identify what these lists/maps/objects are, and how they're laid out, I would greatly appreciate this!
Most of you may know me for my projects GUIShop, AntiBot, Spells and even ShulkerBox. Anyways. I have quite a bit of experience with YML syntax however this one's got me stumped. I need help identifying each object inside this YML. The reason I am requesting help, is I am updating GUIShopPlus, however the reading of the config is completely different than reading it. (Hopefully someone understands what i'm talking about). I have done some digging in the SnakeYML docs but no luck >.< .
YML:
Code:
Raiding:
'1':
- name: '&3Creeper &4Egg'
- slot: 0
- id: '383:50'
- buy-price: 7500
'2':
- slot: 1
- id: '46'
- buy-price: 100
'3':
- slot: 2
- id: '356'
- buy-price: 200
'4':
- slot: 3
- id: '404'
- buy-price: 100
What I've tried:
So, looking at the YML, at first this is what I observed.
Each item is a list. However, the list's key, is a string? Tried removing the quotes to see if the object changed, it did. This must be a specific list. Maybe not a list at all (my assumption)?
The list is NOT a string list, or general list. It appears to be a list of keys, and values. I have tried using a list of maps, didnt appear to work either.
Each item is clearly chained. These are not independent values e.g (first.second.value). You are required to grab the list, and iterate through the values to read each one.
Here is my code I use to read the config: GitHub
You can see, I read the config quite manually. I am not using conventional methods to read this config as I cant figure out what the hell is inside this yaml! I would like to update my reading method to use proper, conventional ways inside snakeyml, as the yaml DOES come up as valid when tested. If I can figure out how to do this, I can easily port the method over for saving as well. If someone can identify what these lists/maps/objects are, and how they're laid out, I would greatly appreciate this!
