Skip to content

API reference Obsidian.API.Networking

PayloadContext class

Where a received payload came from.

public sealed class PayloadContext

In Obsidian.API.

Constructors

public PayloadContext();

Properties

Client

public required IClient Client { get; init; }

The connection the payload arrived on.

Phase

public required PayloadPhase Phase { get; init; }

The phase the connection was in when the payload arrived.

Player

public IPlayer Player { get; init; }

The player the connection logged in as.

Server

public required IServer Server { get; init; }

The server. A plugin's handler gets the plugin's own IServer, whose additions are the plugin's (see BaseMinecraftEventArgs.Server).

On this page