Skip to main content

Command.CanExecute

Server
boolean|nil Lyn.Player.Command.CanExecute(Player caller, string command_name, table info)Hook

Description

Called before permission checks. Return false to block, true to allow and skip Lyn's own permission check, or nil to fall through to normal handling.

Params

  1. Player caller
    Or Lyn.Console.
  2. string command_name
  3. table info
    Contains cmd and args.

Returns