Table of Contents

Interface IPermissionChecker

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

Checks whether a player has permission to invoke a specific command. Used only for player commands; console commands do not require permission checks.

public interface IPermissionChecker

Methods

HasPermission(Player, CommandDefinition)

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

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.