Class BanProcessor
- Namespace
- RisingV.Core.Processors
- Assembly
- RisingV.Core.AdminEngine.dll
Abstract class for processing ban status of players. Inherit to implement specific ban logic.
public abstract class BanProcessor : DefaultProcessor<ulong>, IProcessor<ulong, bool?>, IProcessor, IManageable<ProcessorManager>, IManageable
- Inheritance
-
BanProcessor
- Implements
- Inherited Members
- Extension Methods
Methods
CanProcess(ulong, bool)
Determines whether the processor can handle the given event and whether it is a post-processing event.
public override bool CanProcess(ulong steamId, bool isPost)
Parameters
Returns
- bool
true if the processor can handle the event; otherwise, false.
IsBanned(PlayerAspect)
protected abstract bool? IsBanned(PlayerAspect player)
Parameters
player
PlayerAspect
Returns
- bool?
PostProcess(ulong, out bool?)
Processes the ban status of a player based on their Steam ID.
public override ProcessToken PostProcess(ulong steamId, out bool? result)
Parameters
steamId
ulongSteam ID of the player.
result
bool?Output parameter to hold the result of the ban check.
Returns
- ProcessToken
Token indicating the result of the processing.