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

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

Riknesh

Active Member
Jun 9, 2017
76
2
8
Malaysia
This code doesnt seem to be working for me. How can i fix it or is there any alternative?

code_language.skript:
on chat:
  if length of regex replace "[^A-Z]" with "" in message >= 5:
       if player does not have permission "chatctrl.anticaps.bypass":
            cancel event
            send "{@prefix} Please do not use caps excessively."
            stop

i also have TusKe installed
 
code_language.skript:
on chat:
  message regex matches "[A-Z]{5}":
    player doesn't have permission "chatctrl.anticaps.bypass":
      cancel event
      send ""
      stop
?
 
This code doesnt seem to be working for me. How can i fix it or is there any alternative?

code_language.skript:
on chat:
  if length of regex replace "[^A-Z]" with "" in message >= 5:
       if player does not have permission "chatctrl.anticaps.bypass":
            cancel event
            send "{@prefix} Please do not use caps excessively."
            stop

i also have TusKe installed
What are the errors?
 
code_language.skript:
on chat:
  message regex matches "[A-Z]{5}":
    player doesn't have permission "chatctrl.anticaps.bypass":
      cancel event
      send ""
      stop
?
it only works if the number of capital alphabets are exactly 5..i wan it to be so that it cancels the msg event if number of capital alphabets is more than 5
[doublepost=1530979670,1530979003][/doublepost]nvm i figured it out xD...thanks for the guide
 
Status
Not open for further replies.