Skip to content

API reference Obsidian.API.Events

BaseMinecraftEventArgs class

Represents the base class for classes that contain minecraft event data.

public abstract class BaseMinecraftEventArgs : AsyncEventArgs

In Obsidian.API.

Properties

Server

public IServer Server { get; }

Server this event took place in.

Remarks

A plugin's handler gets its own IServer, whose scoreboards, boss bars, recipes and server players are the plugin's, so that unloading it removes them. The arguments themselves are shared by every handler: what one sets, like cancelling the event, the next sees.

On this page