Skip to content

[ecs] Allow command names to be case-insensitive #439

Open
@MrDave1999

Description

@MrDave1999

Example

[PlayerCommand]
public void MeCommand(Player player, string text)
{
     text = $"* {text}";
     var color = Color.FromInteger(0xEE66EEFF, ColorFormat.RGBA);
     player.SendClientMessage(color, text);
     player.SetChatBubble(text, color, 30, 10000);
 }

If the player types /me the command works, but if /ME or /mE is typed, the command does not work. Is there a solution for this?

PD: I'm using the latest version of SampSharp.Entities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CommandsIssues related to player/RCON commandsarea-ECSIssues related to SampSharp.Entities

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions