SampSharp icon indicating copy to clipboard operation
SampSharp copied to clipboard

[ecs] Allow command names to be case-insensitive

Open DevD4v3 opened this issue 1 year ago • 0 comments

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.

DevD4v3 avatar Aug 09 '24 18:08 DevD4v3