Jump to content

/PruneDB

From fCraft Wiki
Revision as of 09:42, 22 August 2012 by F (talk | contribs)
Command
PruneDB

Removes inactive players from the player database.

Usage

/PruneDB

CategoryMaintenance
Required permissionsEditPlayerDB
Usable from console?Yes
Introduced infCraft 0.510

/PruneDB searches the server's player database for inactive players and asks to remove them. The command effectively removes players who only joined and left again shortly after. /PruneDB does not compromise security as, for example, banned or frozen players are not pruned and also ensures legitimate players will not get reset no matter how long they've been inactive.

Inactive Players

The command deems a player inactive if and only if all the following apply:
  • Is not and never was banned
  • Their last IP address is not banned
  • Is not frozen or muted
  • Was never kicked
  • Is the default rank or was never ranked
  • Has been online for less than half an hour
  • Has not been online the past thirty days
  • Has no active accounts on the same IP address

Removing other players

The only way to remove other players for the database is to remove them by hand. The database can not be effectively edited while the server is running, as it may overwrite any changes you make. The database file is called PlayerDB.txt, wherein each player represents a line. To remove a player, search for their name on the beginning of the line—any names after that are used for "KickedBy" and the like—and remove that entire line. The database will adjust to your changes the next time the server is started.