#Skript Optimisation

1 messages · Page 1 of 1 (latest)

full pendant
#

I made a chat cooldown skript with little knowledge and I would like to know if its good or needs improvements . Any feed back is welcome!

on chat:
 if player doesn't have permission "chatcooldown.bypass":
  if {chat::%player%} is not set:
   set {chat::%player%} to true
   wait 2 seconds
   delete {chat::%player%}
  
  else:
 if {chat::%player%} is true:
  cancel event
  send "{@prefix}You Have To Wait 2 Seconds Before Sending a Message Again."```
Btw idk if I am suppost to ask for skript optimisation here xD
fallow sedge
#

Slowmode

#

Nice

summer relic
#

idk I don't use options

full pendant
#

it sends

#

the prefix of the server

summer relic
cursive cobalt
#

Delete the else: line

#

And do else if or else on the 3rd to last line

full pendant
#

why

little perch
#

Just to remove a line and slightly optimize it I’m guessing

cursive cobalt
#

Mmhm

#

Isn’t that what you wanted