Suggestion: API for UserConfig storage
Kongolan opened this issue ยท 2 comments
Hey there,
since i'm lazy to code a storage system for all my small plugins, which only enhance some features of Essentials and only need to store some simple integers or timestamps, i would like to use the userconfig storage system, which is build in.
I figured that if i add new nodes, they don't get deleted, so it's fully compatible. Also there is already the method setConfigProperty, which is fully working but adds the prefix "info" before the nodes.
Can you remove the prefix of this function or make the prefix customizable?
Greetings Kongolan
As far as I can tell, in UserData
setConfigProperty
, getConfigKeys
and getConfigMap
all consistently use the info
section. You should just be able to use these methods.