here is a /warn script that i made, hope u like it. if u do use this in ur server u dont need to give credit
command /warn <offlineplayer> [<text>]:
permission: skript.warn
trigger:
if arg-1 is set:
if arg-2 is set:
add 1 to {warn::%arg-1's uuid%}
broadcast "&4&lWARNING! &c&l%arg-1% &cgot warned for &c&l%arg-2%! &8&l[&4&l%{warn::%arg-1's uuid%}%&8&l]"
send "" to arg-1
send "&4&lWARNING! &cYou have been warned for %arg-2%. Remember that 3 warns is a 1 hour temp ban" to arg-1
send "" to arg-1
command /warns <offlineplayer>:
permission: skript.warnsveiw
trigger:
if arg-1 is set:
send "&4&l%arg-1%'s &cwarn count is currently &4&l%{warn::%arg-1's uuid%}%."
send "&cRemember that if a player has 3 or more warns, tempban them for 1 hour to keep the server running smoothly."
command /clearwarns <offlineplayer>:
permission: skript.clearwarns
trigger:
if arg-1 is set:
send "&cCleared %arg-1%'s warn count of %{warn::%arg-1's uuid%}%."
set {warn::%arg-1's uuid%} to 0