Cleaning

This plugin can help server administrators to maintain performance by removing data related with users who do not play on the server anymore.

Cleaning configuration

There is a clean section in config.yml, it looks like this:

clean:
  days: 180
  auto: false
  commands:
  - say Player $player_name$ has been removed due to a long absence from the server.
  - say command 2
  - say command 3
  • days - time in days - time of absence, after which the players will be removed.
  • auto - true/false - if true cleaning method will be performed automatically after every server start. Cleaning starts 10 minutes after starting the server.
  • commands - list of commands to perform when player is deleted. Text $player_name$ is replaced with actual name of deleted player. In example above it is three times say command but this can be any command that can be performed from console e.g. lwc admin purge $player_name$, pex user $player_name$ delete etc.

If setting auto is set to false cleaning can be performed by issuing /dstat clean command.

Permissions

dstat.dstat and dstat.dstat.clean
or
dstat.dstat.*

How it works

Players are deleted one by one with 20 ticks delay (1s).

Order of operations:

  1. Check if player is not online (online players can't be deleted).
  2. Commands defined in config are executed in console.
  3. player_name.dat files are deleted from every world that can be found by server.
  4. Player statistics are deleted from DooBStat database.

Sorry for my english it is not my native language.
If you spot something wrong in this description please send me pm.


Comments

Posts Quoted:
Reply
Clear All Quotes