OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface IOwnership

Represts the ownership of an object.

Namespace: OpenMod.Extensions.Games.Abstractions.Acl
Assembly: OpenMod.Extensions.Games.Abstractions.dll
Syntax
public interface IOwnership

Properties

| Improve this Doc View Source

HasOwner

Checks if the object has an owner. Either OwnerPlayerId or OwnerGroupId will not be null if true.

Declaration
bool HasOwner { get; }
Property Value
Type Description
System.Boolean

True if the object has an owner; otherwise, false.

| Improve this Doc View Source

OwnerGroupId

Gets the ID of the group owning this object. Returns null if no group owns the object.

Declaration
string? OwnerGroupId { get; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

OwnerPlayerId

Gets the ID of the player owning this object. Returns null if no player owns the object.

Declaration
string? OwnerPlayerId { get; }
Property Value
Type Description
System.Nullable<System.String>

Methods

| Improve this Doc View Source

HasAccessAsync(IPlayer)

Checks if the given player has access to this object.

Declaration
Task<bool> HasAccessAsync(IPlayer player)
Parameters
Type Name Description
IPlayer player

The player to check against.

Returns
Type Description
Task<System.Boolean>

True if the player has access; otherwise, false.

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)