Table of Contents

Class DefaultPermissionChecker

Namespace
SampSharp.Entities.SAMP.Commands
Assembly
SampSharp.OpenMp.Entities.Commands.dll

Default permission checker that grants all permissions. In a real application, override this with custom permission logic.

public class DefaultPermissionChecker : IPermissionChecker
Inheritance
DefaultPermissionChecker
Implements
Inherited Members

Constructors

DefaultPermissionChecker()

public DefaultPermissionChecker()

Methods

HasPermission(Player, CommandDefinition)

Checks if the given player has permission to invoke a command.

public bool HasPermission(Player player, CommandDefinition command)

Parameters

player Player

The player entity.

command CommandDefinition

The command definition with metadata tags.

Returns

bool

True if the player has permission; otherwise, false.