Skip to content

IEventCommand

Martin S. edited this page Dec 14, 2025 · 3 revisions

Information IEventCommand.cs

  • Type: Interface
  • Description: Interface used to implement your own custom commands to your event, which in some cases is better then registering a lot of commands on server. When player is executing command with event <id> <args> then args will be what you get alongside the player executing command. Index 0 is always going to be present, if not interface IEventHelp will be executed.

Methods

Execute

  • Returns: string
  • Arguments: Exiled.API.Features.Player, System.Collections.Generic.List
  • Description: Method used when command is executed. System.Collections.Generic.List<string> index 0 is always present. String returned represents message received by admin of the server, additionally to this instead of having another out argument for bool, you return !messeage if command was falsely executed and without ! if sucsessfully.
  • Implementations: Bases.cs

Clone this wiki locally