Anti-Caps System

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Cupex

Member
Feb 16, 2020
43
1
8
26
I wondered if it would be possible to block player's from writing in Caps but if the player writes a player name with Caps in it, the message doesnt get blocked.

I tried to make this:

Code:
on chat:
    if player doesn't have permission "FlowMC.caps.bypass":
        loop all players:
            if message contains "%loop-player%":               
                if length of regex replace "[^A-Z]" with "" in message >= 20:
                    cancel event
                    send "&8〣 &6Flow&eMC &8» &7Bitte hör auf in &c&lCAPS &7zu schreiben!"
                    stop
            else:
                if length of regex replace "[^A-Z]" with "" in message >= 6:
                    cancel event
                    send "&8〣 &6Flow&eMC &8» &7Bitte hör auf in &c&lCAPS &7zu schreiben!"
                    stop

but it just don't work. The name is blocked anyway...
Is there any way to do it?
 
Status
Not open for further replies.