if arg-1 is "create":
if arg-2 is not set:
send "{@color1}/clan create name"
else:
if length of arg-2 is greater than 8:
send "{@color2}Clan names can only be up to {@color2}8 {@color1}characters"
stop
if arg-2 is "###, ####, #####, ####, ####, ####, ####, ####, ###, ####,":
send "&c<hat name is not allowed" to player
stop
if arg-2 matches "[a-zA-Z]+":
if {clans::%player%} is not set:
loop {clans::*}:```
#blacklisting names in a clan skript
1 messages · Page 1 of 1 (latest)
if arg-1 is "create" or "disband" or "join" or "leave" or "invite" or "chat" or "info" or "kick":
if arg-1 is "create":
if arg-2 is not set:
send "{@color1}/clan create name"
else:
if length of arg-2 is greater than 8:
send "{@color2}Clan names can only be up to {@color2}8 {@color1}characters"
stop
if arg-2 is "###, ####, #####, ####, ####, ####, ####, ####, ###, ####,":
send "&c<hat name is not allowed" to player
stop
if arg-2 matches "[a-zA-Z]+":
if {clans::%player%} is not set:
loop {clans::*}:
textblocks messed it up
no idea what you want bro
I need to be able to block list names. For example, racial slurs from being created into a clan.
Right now, what I'm using is.
Send "&c&lThat name is not allowed"
Stop```
But this doesent work for some reason
error?
None ill send exact skript again just removing most of the slurs
like you can create the clan with the censored word even though it has the thingy right
try doing if arg-2 contains "###, ####, #####, ####, ####, ####, ####, ####, ###, ####,"
if arg-1 is "create":
if arg-2 is not set:
send "&6Totem Clans: /clan create name"
else:
if length of arg-2 is greater than 8:
send "{@color2}Clan names can only be up to {@color1}8 {@color2}characters"
stop
if arg-2 contains "slur1, slur2,":
send "&c<hat name is not allowed" to player
stop```
trying rn
Still works. Like it still creates the clan when it should not.
the full skript is 1230 lines
the command is 1230 lines?
No I thought you meant the whole script.
I'm going to have to send it as a file as it will not let me in any other way.
i have vsc
paste the code there
do ctrl a -> ctrl c
and paste here
I think it automatically puts it as a format where
its not a file
or something
idk
I'll try
click enter and choose to send it as a file scroll up and it will be up there
and remove the text
press enter and it will show this
prress upload as file
and remove the text and send
a file will get attached
bro thats like 1% of it lol
he is joking
ikik
maybe use else if
Could you give me an example?
instead of
if
if```
I'm kind of confused by that.
it isnt an event
Yes, it's not an event.
so you cant cancel it
maybe make a list of the slurs and then check for them
instead of writing them
oh wait nvm
how would i do that?
thought it was on command for some reason
first make a list
set the list to the bad words
and then loop
add "slur" to {noslurs::*}```
and then check for that liist
do smth like
if arg-2 contains {noslurs::*}:
send "bad" to player```
I will try that right now.
k
:/
how do you have the cheese role ):

no
@rapid stratus @gray current I love you both so much. Thank you so much.
np
yw
did the list work?
@rapid stratus If you're still available, could you help me with this It's becoming a major problem now.
I'm trying discord's being stupid.
It literally won't send. I gotta do the file thing again, but because my Ram is so limited, it's hard.
It wont create any clan at all now
indent
like this
if arg-2 contains "{noslurs::*}"
send "hi" to player
stop
if arg-2 matches "[a-zA-Z]+":```
Do I continue to indent everything after that?
so this should work right or do i need to indent the rest?
In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.
A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:
With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:
I will try here in a minute. Give me a minute.
ok
if (list) contains arg-2
a text does not contain a list
I'm gonna have to let you know tomorrow.
Plan expired.
or if arg-2 contains "this", "that" or "e"
It was if arg-2 contains "slurexample1, slurexample2"
I had to change it because it was slurs. Minehut does not allow it.
came to this
got no errors with it but it doesent work still no command works with this at all now