Hello, im new to plugin development, and i have learned and understand how to create/edit/save resource files, but i havent figured out 1 thing yet... how can i add objects to a list (yaml)? fir example we have a list of players and their favourit items: bob: 12 steve: 92 alex: 18 i can edit these, but how can i add someone or remove frome the list? E.g.: bob: 12 alex: 18 nikoskon: 1 I will appriciate any help! Thank you, nikoskon
this video is very useful and helpful, but i would like to know how to do this stuff within a plugin, actual php code!
I don't recommend using stuff in the Config class. Just Config->getAll() and manipulate the array directly. https://php.net/arrays Then Config->setAll() and Config->save() to save the data.