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

Interface IUser

Represents an OpenMod user.

Inherited Members
ICommandActor.PrintMessageAsync(String)
ICommandActor.PrintMessageAsync(String, Color)
IPermissionActor.Id
IPermissionActor.Type
IPermissionActor.DisplayName
IPermissionActor.FullActorName
Namespace: OpenMod.API.Users
Assembly: OpenMod.API.dll
Syntax
public interface IUser : ICommandActor, IPermissionActor

Properties

| Improve this Doc View Source

Provider

Gets the user provider for the user type.

Declaration
IUserProvider Provider { get; }
Property Value
Type Description
IUserProvider
| Improve this Doc View Source

Session

Gets the current user session. Returns null if the user is not online.

Declaration
IUserSession Session { get; }
Property Value
Type Description
IUserSession

Methods

| Improve this Doc View Source

GetPersistentDataAsync<T>(String)

Gets persistent data. T must be serializable.

Declaration
Task<T> GetPersistentDataAsync<T>(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
Task<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

SavePersistentDataAsync<T>(String, T)

Saves persistent data. T must be serializable.

Declaration
Task SavePersistentDataAsync<T>(string key, T data)
Parameters
Type Name Description
System.String key
T data
Returns
Type Description
Task
Type Parameters
Name Description
T

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)