Skip to content

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).

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).
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.
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.
public string? Dimension { get; init; }

The dimension key (“minecraft:overworld”) the player was saved in; null without saved data.

public DateTimeOffset? FirstJoin { get; init; }

When the player first joined (null when unknown).

public Uuid Id { get; init; }

The uuid.

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.

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.

Uuid · Vec3d