Skip to content

PermissionChangedEvent

Namespace Mc.Scripting.Events · Kind struct (ref)

public ref struct PermissionChangedEvent : IEvent

A permission entry of a player changed (or of a group or everything: AllPlayers is true). Fired after the change; the command trees of the players are resent in the same tick.

Id 104
Key mc:permission_changed
Cancellable no
Fired by the engine yes
Field Type Handlers may write Description
Player Uuid no (readonly) The profile whose permissions changed (zero when AllPlayers).
AllPlayers bool no (readonly) A group, the default group or the whole backend changed.
Member Description
PermissionChangedEvent(Uuid player, bool allPlayers) Creates the event (for firing it from a plugin; native code builds its own).
public PermissionChangedEvent(Uuid player, bool allPlayers)

Creates the event (for firing it from a plugin; native code builds its own). Signature of API 1.0.

Parameters

Name Type Description
player Uuid
allPlayers bool
Member Description
bool AllPlayers { get; } A group, the default group or the whole backend changed.
Uuid Player { get; } The profile whose permissions changed (zero when AllPlayers).
static ushort CatalogueId { get; } Catalogue id (stable ABI).
static bool IsCancellable { get; } Whether handlers can cancel the event.
static string Key { get; } Registry key of the event.
public bool AllPlayers { get; }

A group, the default group or the whole backend changed.

public Uuid Player { get; }

The profile whose permissions changed (zero when AllPlayers).

public static ushort CatalogueId { get; }

Catalogue id (stable ABI).

public static bool IsCancellable { get; }

Whether handlers can cancel the event.

public static string Key { get; }

Registry key of the event.

IEvent · Player · Uuid