[This is preliminary documentation and is subject to change.]
The PlayerDB type exposes the following methods.
Methods
| Member | Description | |
|---|---|---|
| AddFakeEntry(String, RankChangeType) | ||
| AppendEscaped(StringBuilder, String) | Escapes special characters (comma, newline, carriage return)
and appends the processed string to the given StringBuilder.
Used on all string fields of PlayerInfo and IPBanInfo. | |
| Escape(String) | Escapes special characters (comma, newline, carriage return) in the given string. | |
| FindExactClassyName(String) | ||
| FindOrCreateInfoForPlayer(String, IPAddress) | ||
| FindPlayerInfoByID(Int32) | Finds PlayerInfo by ID. Returns null of not found. | |
| FindPlayerInfoExact(String) | Finds player by exact name. | |
| FindPlayerInfoOrPrintMatches(Player, String) | Searches for player names starting with namePart.
If exactly one player matched, returns the corresponding PlayerInfo object.
If name format is incorrect, or if no matches were found, an appropriate message is printed to the player.
If multiple players were found matching the partialName, first 25 matches are printed. | |
| FindPlayers(IPAddress) | ||
| FindPlayers(String) | ||
| FindPlayers(Regex) | ||
| FindPlayers(IPAddress, Int32) | ||
| FindPlayers(String, Int32) | ||
| FindPlayers(Regex, Int32) | ||
| FindPlayersCidr(IPAddress, Byte) | ||
| FindPlayersCidr(IPAddress, Byte, Int32) | ||
| GetNextID()()()() | ||
| MassRankChange(Player, Rank, Rank, String) | ||
| Save()()()() | ||
| Unescape(String) | Restores escaped special characters (comma, newline, carriage return).
Used on all string fields of PlayerInfo and IPBanInfo records, at load time. |