Interface IAccessControlService
- Namespace
- Shard.Server.Modules.AccessControl
- Assembly
- Shard.Server.Modules.dll
Service for simple UUID-based access control: banning and optional whitelisting. Integrates with the permissions service so ops bypass restrictions.
public interface IAccessControlService
Properties
Banned
IReadOnlyCollection<Guid> Banned { get; }
Property Value
Whitelisted
IReadOnlyCollection<Guid> Whitelisted { get; }
Property Value
Methods
Ban(Guid, string?)
bool Ban(Guid uuid, string? reason = null)
Parameters
Returns
DisableWhitelist()
void DisableWhitelist()
EnableWhitelist()
void EnableWhitelist()
IsAllowed(Guid)
Return whether the UUID is allowed to join/play: false if banned; if any whitelisted entries exist then only whitelisted UUIDs (or ops) are allowed.
Reason IsAllowed(Guid uuid)
Parameters
uuidGuid
Returns
IsBanned(Guid)
bool IsBanned(Guid uuid)
Parameters
uuidGuid
Returns
IsWhitelistEnabled()
bool IsWhitelistEnabled()
Returns
IsWhitelisted(Guid)
bool IsWhitelisted(Guid uuid)
Parameters
uuidGuid
Returns
Unban(Guid)
bool Unban(Guid uuid)
Parameters
uuidGuid
Returns
Unwhitelist(Guid)
void Unwhitelist(Guid uuid)
Parameters
uuidGuid
Whitelist(Guid)
void Whitelist(Guid uuid)
Parameters
uuidGuid