Skript anti caps

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Pykaxe

Member
Jul 26, 2017
32
1
0
23
Category: Chat

Suggested name: Anti CAPS

What I want:
This plugin allows you to stop people who are using caps in chat abusively! It would block the player from sending the message if there is more than 10 CAPS LOCK letters :emoji_slight_smile:

Ideas for permissions: caps.allow

When I'd like it by: Today
 
code_language.skript:
on chat:
    if player doesn't have permission "caps.allow":
        if length of regex replace "[^A-Z]" with "" in message >= 10:
            cancel event
            send "MESSAGE HERE"
Not so hard, was it ? Requires TuSKe.
 
code_language.skript:
on chat:
    if player doesn't have permission "caps.allow":
        if length of regex replace "[^A-Z]" with "" in message >= 10:
            cancel event
            send "MESSAGE HERE"
Not so hard, was it ? Requires TuSKe.
:emoji_astonished:
Thanks!
Is there any way to lowercase the message though?