Raised This Month: $41 Target: $400

[ANY] Chat Trigger to Lower Case [v1.0.0 | 20-October-2020]

Post New Thread Reply   
Thread Tools Display Modes
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
Plugin Version:
Plugin Category:
Plugin Game:
Plugin Dependencies:
    Servers with this Plugin:
    Plugin Description:
    Auto converts chat triggers to lower case
    Old 10-20-2020 , 16:58   [ANY] Chat Trigger to Lower Case [v1.0.0 | 20-October-2020]
    Reply With Quote #1


    This plugin converts chat text to lower case when it starts with a chat trigger. ("!" or "/")

    It is very useful for me, as I often make mistakes while typing a chat command, adding spaces or some uppercase letters, causing the command to not be recognized.

    I did this plugin a long time ago, but during this time a similar one was released [ANY] !COMMAND eater by Dragokas,
    which helped me a lot to improve the coding and I highly recommend using it if you have more specific needs.

    This plugin was made for L4D1 and L4D2 but may work in other games as well.

    • Convert chat text to lower case.
    • Allow trimming the chat text when it starts with a chat trigger.
    • Read chat triggers directly from sourcemod core config. (sourcemod/configs/core.cfg => PublicChatTrigger and SilentChatTrigger)

    Chat message examples
    • "!slay @ALL" converts into "!slay @all"
    • " !Kick @Bots" converts into "!kick @bots"
    • "!NOCLIP Mart" converts into "!noclip mart"


    A configuration file named "chat_trigger_lowercase.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    chat_trigger_lowercase_enable "1"

    // Trim (remove whitespaces) the text when it starts with a chat trigger.
    // 0 = OFF, 1 = ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    chat_trigger_lowercase_trim "1" 
    Admin Commands
    • sm_print_cvars_chat_trigger_lowercase => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log


    • The chat triggers config is located at sourcemod/configs/core.cfg. Check the PublicChatTrigger and SilentChatTrigger attributes.
    • The chat text is limited to 127 characters.
    • It only lower case chat commands, console commands won't have the same behavior.

    Thank you!

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    • Put the "chat_trigger_lowercase.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (chat_trigger_lowercase.sp - 25 views - 9.3 KB)

    Last edited by Marttt; 03-07-2021 at 14:51.
    Marttt is offline
    Junior Member
    Join Date: Oct 2020
    Old 10-20-2020 , 23:23   Re: [ANY] Chat Trigger to Lower Case [v1.0.0 | 20-October-2020]
    Reply With Quote #2

    I like it! I was shocked at the number of times a player would put a random uppercase in a command then wonder why it didn't work. Lmao
    Ocela is offline
    AlliedModders Donor
    Join Date: Jan 2017
    Old 10-21-2020 , 04:22   Re: [ANY] Chat Trigger to Lower Case [v1.0.0 | 20-October-2020]
    Reply With Quote #3

    Trum is offline

    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump

    All times are GMT -4. The time now is 14:40.

    Powered by vBulletin®
    Copyright ©2000 - 2021, vBulletin Solutions, Inc.
    Theme made by Freecode