Alilinks are not saved through server restarts #34
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ChromaGaming/AliPresents#34
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
welp, it's time to tackle config.yml files
In package buttondevteam.alipresents.components.alilinks.entities, there is the Link class which I would like to be saved through every server stopping, and loaded every server restart.
There isn't a way to tell when the server crashes, so I want every new link created or edited to be saved to config.yml. (Converting it to a string might be a preferable option)
Then, on server load, in the AliLinkComponent.register() method, I'd like to have all links be loaded from the config file, and loaded into a Link Array in AliLinkComponent class, to be manipulated and read during server use.
It's been quite a longstanding issue, and I'm mostly asking for help so that I can figure out how to work with config files from the commits made.