Table of Contents

Class CommandDefinition

Namespace
CounterStrikeSharp.API.Core.Commands
Assembly
CounterStrikeSharp.API.dll
public class CommandDefinition
Inheritance
CommandDefinition

Constructors

CommandDefinition()

public CommandDefinition()

CommandDefinition(string, string, CommandCallback)

public CommandDefinition(string name, string description, CommandInfo.CommandCallback callback)

Parameters

name string
description string
callback CommandInfo.CommandCallback

Properties

Callback

public CommandInfo.CommandCallback Callback { get; init; }

Property Value

CommandInfo.CommandCallback

Description

public string Description { get; init; }

Property Value

string

ExecutableBy

public CommandUsage ExecutableBy { get; init; }

Property Value

CommandUsage

MinArgs

public int? MinArgs { get; init; }

Property Value

int?

Name

public string Name { get; init; }

Property Value

string

UsageHint

public string? UsageHint { get; init; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.