Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MrDave1999 opened this issue Aug 9, 2024 · 0 comments · May be fixed by #440
Open

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

MrDave1999 opened this issue Aug 9, 2024 · 0 comments · May be fixed by #440

Comments

@MrDave1999
Copy link
Contributor

MrDave1999 commented Aug 9, 2024

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.

@MrDave1999 MrDave1999 changed the title Why are command names not case-insensitive? [ecs] Allow command names to be case-insensitive Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant