Skip to content

feat: database cleaner#725

Open
Paco161315 wants to merge 2 commits into
zimbadev:mainfrom
Paco161315:database-cleaner
Open

feat: database cleaner#725
Paco161315 wants to merge 2 commits into
zimbadev:mainfrom
Paco161315:database-cleaner

Conversation

@Paco161315
Copy link
Copy Markdown
Contributor

@Paco161315 Paco161315 commented May 12, 2026

Delete inactive players and their accounts after a long period of inactivity. It also cleans znote accounts for our offical crystal server account creator.

You can configure the level range and inactivity time at database_cleaner.lua

There is an ignoredNames sample list where you can add which characters you do not wish to auto-delete no matter what.

This system has been tested for a while in rookgaardtales.com now available for crystal server.

Delete inactive players and their accounts after a long period of inactivity.
It also cleans znote accounts for our offical crystal server account creator.

You can configure the level range and inactivity time at database_cleaner.lua

There is a ignoredNames sample list where you can add which characters you do not wish to auto-delete no matter what.

This system has been tested for a while in rookgaardtales.com now available for crystal server.
@jprzimba
Copy link
Copy Markdown
Collaborator

I think the config in lua
if not configManager.getBoolean(configKeys.CLEAN_DATABASE) then
return
end

need to be moved inside
function playerCleaner.onStartup()

@Paco161315
Copy link
Copy Markdown
Contributor Author

I think the config in lua if not configManager.getBoolean(configKeys.CLEAN_DATABASE) then return end

need to be moved inside function playerCleaner.onStartup()

My bad, sorry, It's done. I put there and forgot to move inside the function.
The original file doesn't has config boolean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants