OfflineProfile
Namespace Mc.Scripting · Kind class (sealed)
public sealed class OfflineProfile : IEquatable<OfflineProfile>What the server knows about a player who is not online: the name, the first join and the last time seen (both from the server’s records; null when unknown), and the position in the saved player data (null when there is no saved data).
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
Constructor |
What the server knows about a player who is not online: the name, the first join and the last time seen (both from the server’s records; null when unknown), and the position in the saved player data (null when there is no saved data). |
Constructor
Section titled “Constructor”public OfflineProfile(Uuid Id, string Name, DateTimeOffset? FirstJoin, DateTimeOffset? LastSeen, string? Dimension, Vec3d? Position, float Yaw, float Pitch)What the server knows about a player who is not online: the name, the first join and the last time seen (both from the server’s records; null when unknown), and the position in the saved player data (null when there is no saved data).
Parameters
| Name | Type | Description |
|---|---|---|
Id |
Uuid |
The uuid. |
Name |
string |
The newest name the server has for the uuid. |
FirstJoin |
DateTimeOffset? |
When the player first joined (null when unknown). |
LastSeen |
DateTimeOffset? |
When the player was last saved or left (null when unknown). |
Dimension |
string? |
The dimension key (“minecraft:overworld”) the player was saved in; null without saved data. |
Position |
Vec3d? |
The saved feet position; null without saved data. |
Yaw |
float |
The saved yaw; 0 without saved data. |
Pitch |
float |
The saved pitch; 0 without saved data. |
Properties
Section titled “Properties”| Member | Description |
|---|---|
string? Dimension { get; init; } |
The dimension key (“minecraft:overworld”) the player was saved in; null without saved data. |
DateTimeOffset? FirstJoin { get; init; } |
When the player first joined (null when unknown). |
Uuid Id { get; init; } |
The uuid. |
DateTimeOffset? LastSeen { get; init; } |
When the player was last saved or left (null when unknown). |
string Name { get; init; } |
The newest name the server has for the uuid. |
float Pitch { get; init; } |
The saved pitch; 0 without saved data. |
Vec3d? Position { get; init; } |
The saved feet position; null without saved data. |
float Yaw { get; init; } |
The saved yaw; 0 without saved data. |
Dimension
Section titled “Dimension”public string? Dimension { get; init; }The dimension key (“minecraft:overworld”) the player was saved in; null without saved data.
FirstJoin
Section titled “FirstJoin”public DateTimeOffset? FirstJoin { get; init; }When the player first joined (null when unknown).
public Uuid Id { get; init; }The uuid.
LastSeen
Section titled “LastSeen”public DateTimeOffset? LastSeen { get; init; }When the player was last saved or left (null when unknown).
public string Name { get; init; }The newest name the server has for the uuid.
public float Pitch { get; init; }The saved pitch; 0 without saved data.
Position
Section titled “Position”public Vec3d? Position { get; init; }The saved feet position; null without saved data.
public float Yaw { get; init; }The saved yaw; 0 without saved data.