Interface IPlayerCommandService
Dispatches chat input from a player to a method marked with PlayerCommandAttribute.
public interface IPlayerCommandService
Properties
Registry
Gets the command registry containing all registered player commands.
ICommandRegistry Registry { get; }
Property Value
Methods
Invoke(IServiceProvider, EntityId, string)
Invokes a player command from the given chat input.
bool Invoke(IServiceProvider services, EntityId player, string inputText)
Parameters
servicesIServiceProviderService provider used to resolve handler systems and DI parameters.
playerEntityIdThe invoking player.
inputTextstringRaw chat input including the leading slash.