Page 1 of 1

saving a map or list as settings

Posted: Mon Jun 21, 2021 1:16 pm
by fenepet965
Hi,

Is there any ways or examples on how to save a map or list to the Settings class?

Thanks,

Re: saving a map or list as settings

Posted: Mon Jun 21, 2021 1:47 pm
by Andry API support
Hi,
Just add your map or list to the settings class. Settings class can be just any class. It does not need to implement any interface. Let us know if you need a more detailed info.
Here are module examples. Just add your map or list to the settings class (Settings in Simplified API example, MarkersDemoSettings in Core API example).
Simplified API example
https://github.com/BookmapAPI/DemoStrat ... iDemo.java
Core API example (see MarkersDemoSettings class)
https://github.com/BookmapAPI/DemoStrat ... mo/markers