OfflinePlayers
Namespace Mc.Scripting · Kind class (static)
public static class OfflinePlayersPlayers who are not online, looked up by name or uuid: the server’s name cache (usercache.json, vanilla’s), the first join and last seen times, and the saved player data. Reads only; a plugin that changes an offline player’s data does it through the owner’s own store. Thread: tick thread (the reads go to the engine).
Methods
Section titled “Methods”| Member | Description |
|---|---|
static Uuid? Find(string name) |
The uuid of a player name (case-insensitive) that the server remembers; null when it does not know the name. |
static OfflineProfile? Get(Uuid uuid) |
The profile of a uuid the server knows, online or not (online players have their newer state in the player’s own handle). |
public static Uuid? Find(string name)The uuid of a player name (case-insensitive) that the server remembers; null when it does not know the name.
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
The name. |
Returns Uuid?: The uuid, or null.
public static OfflineProfile? Get(Uuid uuid)The profile of a uuid the server knows, online or not (online players have their newer state in the player’s own handle).
Parameters
| Name | Type | Description |
|---|---|---|
uuid |
Uuid |
The uuid. |
Returns OfflineProfile?: The profile, or null when the server has never seen the uuid.