I got the minutes to work but i cant think a way to get minutes and seconds to work together when the do /nextclear. this is what i got so far:
code_language.skript:
options:
prefix: &8<&2ClearLag&8>&e
variables:
{minute} = 0
command /nextclear:
permission: timer.clear
trigger:
if {minute} is less than 2:
message "&aNext clear is in&c %{minute}% Minute"
else:
message "&aNext clear is in&c %{minute}% Minutes"
every 1 seconds:
clear {_count}
loop all entities:
if entity is not a player:
clear loop-entity
add 1 to {_count}
if {_count} is not set:
set {_count} to 0
broadcast "{@prefix} &cRemoved &4%{_count}% &cEntities!"
set {minute} to 5
every 60 seconds:
remove 1 from {minute}