PermissionChangedEvent
Namespace Mc.Scripting.Events · Kind struct (ref)
public ref struct PermissionChangedEvent : IEventA 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. |
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
PermissionChangedEvent(Uuid player, bool allPlayers) |
Creates the event (for firing it from a plugin; native code builds its own). |
Constructor
Section titled “Constructor”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 |
Properties
Section titled “Properties”| 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. |
AllPlayers
Section titled “AllPlayers”public bool AllPlayers { get; }A group, the default group or the whole backend changed.
Player
Section titled “Player”public Uuid Player { get; }The profile whose permissions changed (zero when AllPlayers).
CatalogueId
Section titled “CatalogueId”public static ushort CatalogueId { get; }Catalogue id (stable ABI).
IsCancellable
Section titled “IsCancellable”public static bool IsCancellable { get; }Whether handlers can cancel the event.
public static string Key { get; }Registry key of the event.