Can someone help me with my ClearLag skript?

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

    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.

Fluffy Gaia

Member
Aug 28, 2022
1
0
1
I'm not the best at skript and I don't entirely know what's going wrong, I just want a ClearLag skript with a Toggle and a manual thing where if you do the command it clears everything after like 10 seconds.
Here's the skript:

variables:
{clearlag.%player%} = "False"

command /clearlag on:
aliases: /cl on
permission: op
permission message: &cYou cannot execute this command!
trigger:
if {clearlag.%player%} is "False":
send player message "ClearLag turned on"
set {clearlag.%player%} to "True"


command /clearlag off:
aliases: /cl off
permission: op
permission message: &cYou cannot execute this command!
trigger:
if {clearlag.%player%} is "True":
send player message "ClearLag turned off"
set {clearlag.%player%} to "False"


command /clearlag manual:
aliases: /cl manual
permission: op
permission message: &cYou cannot execute this command!
trigger:
broadcast "Clearing dropped items in 10 seconds."
wait 5 seconds
broadcast "Clearing dropped items in 5 seconds."
wait 5 seconds
broadcast "Killed %size of dropped items% dropped items."
kill dropped items


If {clearlag.%player%} is "True":
every 10 minutes:
broadcast "Clearing dropped items in 10 seconds."
wait 5 seconds
broadcast "Clearing dropped items in 5 seconds."
wait 5 seconds
broadcast "Killed %size of dropped items% dropped items."
kill dropped items
 
Status
Not open for further replies.