Skip to content

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

@DevD4v3

Description

@DevD4v3

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

    legacyLegacy SampSharp v0.x

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions