PlayerDB.txt: Difference between revisions
No edit summary |
|||
| Line 19: | Line 19: | ||
!Remarks | !Remarks | ||
|- | |- | ||
!1 | |||
|Name | |Name | ||
|String | |String | ||
| Line 27: | Line 27: | ||
<code>^([a-zA-Z0-9._]{2,16}|[a-zA-Z0-9._]{1,15}@\d*)$</code> | <code>^([a-zA-Z0-9._]{2,16}|[a-zA-Z0-9._]{1,15}@\d*)$</code> | ||
|- | |- | ||
!2 | |||
|LastIP | |LastIP | ||
|IPAddress | |IPAddress | ||
| Line 33: | Line 33: | ||
|May be blank ("none") for players whose records were imported. | |May be blank ("none") for players whose records were imported. | ||
|- | |- | ||
!3 | |||
|Rank | |Rank | ||
|String | |String | ||
| Line 39: | Line 39: | ||
|Full rank name. Saved as "RankName#UUID", where UUID is rank's universally unique identifier. fCraft can parse rank name without ID as well. If parsing fails, default rank is assigned to player. Not escaped. | |Full rank name. Saved as "RankName#UUID", where UUID is rank's universally unique identifier. fCraft can parse rank name without ID as well. If parsing fails, default rank is assigned to player. Not escaped. | ||
|- | |- | ||
!4 | |||
|RankChangeDate | |RankChangeDate | ||
|DateTime | |DateTime | ||
| Line 45: | Line 45: | ||
|Defaults to "never" (empty string) for players who have never been ranked. | |Defaults to "never" (empty string) for players who have never been ranked. | ||
|- | |- | ||
!5 | |||
|RankChangedBy | |RankChangedBy | ||
|String | |String | ||
| Line 51: | Line 51: | ||
|Defaults to empty string for players who have never been ranked. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |Defaults to empty string for players who have never been ranked. Name of a player (usually). Does not have to be a valid player name though. Escaped. | ||
|- | |- | ||
!6 | |||
|BanStatus | |BanStatus | ||
|Enum | |Enum | ||
| Line 60: | Line 60: | ||
*Anything else (usually empty string) = player is neither banned nor exempt. | *Anything else (usually empty string) = player is neither banned nor exempt. | ||
|- | |- | ||
!7 | |||
|BanDate | |BanDate | ||
|DateTime | |DateTime | ||
| Line 66: | Line 66: | ||
|Defaults to "never" (empty string) for players who have never been banned. | |Defaults to "never" (empty string) for players who have never been banned. | ||
|- | |- | ||
!8 | |||
|BannedBy | |BannedBy | ||
|String | |String | ||
| Line 72: | Line 72: | ||
|Only read if BanDate was set. Defaults to empty string for players who have never been banned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |Only read if BanDate was set. Defaults to empty string for players who have never been banned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | ||
|- | |- | ||
!9 | |||
|UnbanDate | |UnbanDate | ||
|DateTime | |DateTime | ||
| Line 78: | Line 78: | ||
|Defaults to "never" (empty string) for players who have never been banned. | |Defaults to "never" (empty string) for players who have never been banned. | ||
|- | |- | ||
!10 | |||
|UnbannedBy | |UnbannedBy | ||
|String | |String | ||
| Line 84: | Line 84: | ||
|Only read if UnbanDate was set. Defaults to empty string for players who have never been unbanned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |Only read if UnbanDate was set. Defaults to empty string for players who have never been unbanned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | ||
|- | |- | ||
!11 | |||
|BanReason | |BanReason | ||
|String | |String | ||
| Line 90: | Line 90: | ||
|Only read if BanDate was set. May be blank. Escaped. | |Only read if BanDate was set. May be blank. Escaped. | ||
|- | |- | ||
!12 | |||
|UnbanReason | |UnbanReason | ||
|String | |String | ||
| Line 96: | Line 96: | ||
|Only read if UnbanDate was set. May be blank. Escaped. | |Only read if UnbanDate was set. May be blank. Escaped. | ||
|- | |- | ||
!13 | |||
|LastFailedLoginDate | |LastFailedLoginDate | ||
|DateTime | |DateTime | ||
| Line 102: | Line 102: | ||
| | | | ||
|- | |- | ||
!14 | |||
|LastFailedLoginIP | |LastFailedLoginIP | ||
|IPAddress | |IPAddress | ||
| Line 108: | Line 108: | ||
| | | | ||
|- | |- | ||
!15 | |||
|UNUSED | |''UNUSED'' | ||
| | | | ||
|No longer in use. | |No longer in use. | ||
|Skip this column. | |Skip this column. | ||
|- | |- | ||
!16 | |||
|FirstLoginDate | |FirstLoginDate | ||
|DateTime | |DateTime | ||
| Line 120: | Line 120: | ||
|May be "never" for players whose records were imported. | |May be "never" for players whose records were imported. | ||
|- | |- | ||
!17 | |||
|LastLoginDate | |LastLoginDate | ||
|DateTime | |DateTime | ||
| Line 126: | Line 126: | ||
|May be "never" for players whose records were imported. | |May be "never" for players whose records were imported. | ||
|- | |- | ||
!18 | |||
|TotalTime | |TotalTime | ||
|TimeSpan | |TimeSpan | ||
| Line 132: | Line 132: | ||
|May be 0 for players whose records were imported. | |May be 0 for players whose records were imported. | ||
|- | |- | ||
!19 | |||
|BlocksBuilt | |BlocksBuilt | ||
|Int32 | |Int32 | ||
| Line 138: | Line 138: | ||
| | | | ||
|- | |- | ||
!20 | |||
|BlocksDeleted | |BlocksDeleted | ||
|Int32 | |Int32 | ||
| Line 144: | Line 144: | ||
| | | | ||
|- | |- | ||
!21 | |||
|TimesVisited | |TimesVisited | ||
|Int32 | |Int32 | ||
| Line 150: | Line 150: | ||
|May be 0 for players whose records were imported. | |May be 0 for players whose records were imported. | ||
|- | |- | ||
!22 | |||
|MessagesWritten | |MessagesWritten | ||
|Int32 | |Int32 | ||
| Line 156: | Line 156: | ||
| | | | ||
|- | |- | ||
!23 | |||
|UNUSED | |''UNUSED'' | ||
| | | | ||
|No longer in use. | |No longer in use. | ||
|Skip this column. | |Skip this column. | ||
|- | |- | ||
!24 | |||
|UNUSED | |''UNUSED'' | ||
| | | | ||
|No longer in use. | |No longer in use. | ||
|Skip this column. | |Skip this column. | ||
| | |||
|- | |||
!25 | |||
|PreviousRank | |||
|String | |||
|Player's previous rank. | |||
|May be blank if player has never been promoted/demoted before. Same format as "Rank" column. | |||
|} | |} | ||
Revision as of 04:05, 22 August 2013
Header
Encoding
Numbers: All numbers are nonnegative integers, written out with decimal digits. Empty Int32/Int64 fields are interpreted as 0.
Dates: Dates are saved as number of seconds since UTC Unix Timestamp. Value of "0" and empty DateTime fields are interpreted as "never" (DateTime.MinValue).
IP Addresses: IPs are serialized in dotted decimal notation (e.g. "192.168.1.1"). Only IPv4 addresses are used — no IPv6. Empty string, any invalid value, or "255.255.255.255" are interpreted as "unknown" address.
Strings: Strings are encoded as ASCII. Escaped characters are ,, \n, and \r — they are replaced with \xFF, \xFE, and \xFD respectively. There is no limit on string length. Parsing ends at the nearest comma.
Columns
(Note that order in this list starts with 1, not 0)
| Order | Name | Data Type | Purpose | Remarks | |
|---|---|---|---|---|---|
| 1 | Name | String | Player's account name. | Invalid values cause whole record to be skipped. Regex used to verify validity:
| |
| 2 | LastIP | IPAddress | For offline players, last IP used to successfully log in. For online players, current IP. | May be blank ("none") for players whose records were imported. | |
| 3 | Rank | String | Player's current rank. | Full rank name. Saved as "RankName#UUID", where UUID is rank's universally unique identifier. fCraft can parse rank name without ID as well. If parsing fails, default rank is assigned to player. Not escaped. | |
| 4 | RankChangeDate | DateTime | Date of the most recent promotion/demotion. | Defaults to "never" (empty string) for players who have never been ranked. | |
| 5 | RankChangedBy | String | Name of the player or entity who most recently promoted/demoted this player. | Defaults to empty string for players who have never been ranked. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |
| 6 | BanStatus | Enum | Player's current BanStatus: Banned, NotBanned, or Exempt. | One or zero characters long.
| |
| 7 | BanDate | DateTime | Date of most recent ban. | Defaults to "never" (empty string) for players who have never been banned. | |
| 8 | BannedBy | String | Name of the player or entity who most recently banned this player. | Only read if BanDate was set. Defaults to empty string for players who have never been banned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |
| 9 | UnbanDate | DateTime | Date of most recent unban. | Defaults to "never" (empty string) for players who have never been banned. | |
| 10 | UnbannedBy | String | Name of the player or entity who most recently unbanned this player. | Only read if UnbanDate was set. Defaults to empty string for players who have never been unbanned. Name of a player (usually). Does not have to be a valid player name though. Escaped. | |
| 11 | BanReason | String | Reason given for the most recent ban. | Only read if BanDate was set. May be blank. Escaped. | |
| 12 | UnbanReason | String | Reason given for the most recent unban. | Only read if UnbanDate was set. May be blank. Escaped. | |
| 13 | LastFailedLoginDate | DateTime | Date of most recent failed attempt to log in. | ||
| 14 | LastFailedLoginIP | IPAddress | IP from which player most recently tried (and failed) to log in. | ||
| 15 | UNUSED | No longer in use. | Skip this column. | ||
| 16 | FirstLoginDate | DateTime | First time the player ever attempted to log in. | May be "never" for players whose records were imported. | |
| 17 | LastLoginDate | DateTime | Most recent time the player successfully logged in. | May be "never" for players whose records were imported. | |
| 18 | TotalTime | TimeSpan | Total amount of time the player spent on this server. | May be 0 for players whose records were imported. | |
| 19 | BlocksBuilt | Int32 | Total number of blocks manually built or painted by the player. | ||
| 20 | BlocksDeleted | Int32 | Total number of blocks manually deleted by the player. | ||
| 21 | TimesVisited | Int32 | Number of sessions/logins. | May be 0 for players whose records were imported. | |
| 22 | MessagesWritten | Int32 | Total number of chat messages written. | ||
| 23 | UNUSED | No longer in use. | Skip this column. | ||
| 24 | UNUSED | No longer in use. | Skip this column. | ||
| 25 | PreviousRank | String | Player's previous rank. | May be blank if player has never been promoted/demoted before. Same format as "Rank" column. |