EssentialsX

EssentialsX

2M Downloads

Suggestion: API for UserConfig storage

Kongolan opened this issue ยท 2 comments

commented

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

commented

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.

commented

Closing due to inactivity. If you need further assistance, feel free to respond to this issue and we'll reopen it.