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

    Now, what are you waiting for? Join the community now!

Code:
#Made by BigBrainFrog / Frog

variables:
  {warns}  = 0

# Warn Command
command /warn <offline player> <text>:
  permission: warn.sk
  permission message: &4&lYou do not have permission to use this command!
  trigger:
    if arg-1 is set:
      if arg-2 is set:
        add 1 to {warns.%arg-1's uuid%}
        broadcast "&a----------------------------------------------"
        broadcast "&c[&6Warning System&c] &6%player% &cwarned &6%arg-1%"
        broadcast "&c[&6Warning System&c] They now have %{warns.%arg-1's uuid%}% warn(s)."
        broadcast "&c[&6Warning System&c] Reason: &6%arg-2%"
        broadcast "&a----------------------------------------------"
# Checks if warn count is divisible by 5 and if it is, it bans the player
        {warns.%arg-1's uuid%} is divisible by 5:
          {warns.%arg-1's uuid%} is not 0:
            console command "tempban %arg-1% 3h &4&lHaving too many warnings!"

# Unwarn Command
command /unwarn <offline player>:
  permission: warn.sk
  permission message: &4&lYou do not have permission to use this command!
  trigger:
    if arg-1 is set:
      if {warns.%arg-1's uuid%} is 0:
        send "&a----------------------------------------------" to player
        send "&c[&6Warning System&c] You can't have negative warns!" to player
        send "&a----------------------------------------------" to player
      if {warns.%arg-1's uuid%} is not 0:
        remove 1 from {warns.%arg-1's uuid%}
        broadcast "&a----------------------------------------------"
        broadcast "&c[&6Warning System&c] &6%player% &cunwarned &6%arg-1%"
        broadcast "&c[&6Warning System&c] They now have %{warns.%arg-1's uuid%}% warn(s)."
        broadcast "&a----------------------------------------------"

# Check Warns Command
command /checkwarns <offline player>:
  permission: warn.sk
  permission message: &4&lYou do not have permission to use this command!
  trigger:
    broadcast "&a----------------------------------------------"
    broadcast "&c[&6Warning System&c] &6%arg-1% &chas %{warns.%arg-1's uuid%}% &cwarn(s)."
    broadcast "&a----------------------------------------------"

# Clear Warns Command
command /clearwarns <offline player>:
  permission: warn.sk
  permission message: &4&lYou do not have permission to use this command!
  trigger:
    set {warns.%arg-1's uuid%} to 0
    broadcast "&a----------------------------------------------"
    broadcast "&c[&6Warning System&c] &6%player% &chas cleared &6%arg-1%&6's &cwarnings."
    broadcast "&a----------------------------------------------"

^ what you asked for <3
 
Code:
#Made by BigBrainFrog / Frog

variables:
  {warns}  = 0

# Warn Command
command /warn <offline player> <text>:
  permission: warn.sk
  permission message: &4&lYou do not have permission to use this command!
  trigger:
    if arg-1 is set:
      if arg-2 is set:
        add 1 to {warns.%arg-1's uuid%}
        broadcast "&a----------------------------------------------"
        broadcast "&c[&6Warning System&c] &6%player% &cwarned &6%arg-1%"
        broadcast "&c[&6Warning System&c] They now have %{warns.%arg-1's uuid%}% warn(s)."
        broadcast "&c[&6Warning System&c] Reason: &6%arg-2%"
        broadcast "&a----------------------------------------------"
# Checks if warn count is divisible by 5 and if it is, it bans the player
        {warns.%arg-1's uuid%} is divisible by 5:
          {warns.%arg-1's uuid%} is not 0:
            console command "tempban %arg-1% 3h &4&lHaving too many warnings!"

# Unwarn Command
command /unwarn <offline player>:
  permission: warn.sk
  permission message: &4&lYou do not have permission to use this command!
  trigger:
    if arg-1 is set:
      if {warns.%arg-1's uuid%} is 0:
        send "&a----------------------------------------------" to player
        send "&c[&6Warning System&c] You can't have negative warns!" to player
        send "&a----------------------------------------------" to player
      if {warns.%arg-1's uuid%} is not 0:
        remove 1 from {warns.%arg-1's uuid%}
        broadcast "&a----------------------------------------------"
        broadcast "&c[&6Warning System&c] &6%player% &cunwarned &6%arg-1%"
        broadcast "&c[&6Warning System&c] They now have %{warns.%arg-1's uuid%}% warn(s)."
        broadcast "&a----------------------------------------------"

# Check Warns Command
command /checkwarns <offline player>:
  permission: warn.sk
  permission message: &4&lYou do not have permission to use this command!
  trigger:
    broadcast "&a----------------------------------------------"
    broadcast "&c[&6Warning System&c] &6%arg-1% &chas %{warns.%arg-1's uuid%}% &cwarn(s)."
    broadcast "&a----------------------------------------------"

# Clear Warns Command
command /clearwarns <offline player>:
  permission: warn.sk
  permission message: &4&lYou do not have permission to use this command!
  trigger:
    set {warns.%arg-1's uuid%} to 0
    broadcast "&a----------------------------------------------"
    broadcast "&c[&6Warning System&c] &6%player% &chas cleared &6%arg-1%&6's &cwarnings."
    broadcast "&a----------------------------------------------"

^ what you asked for <3
Thank you
I've been trying to get a /warn skript for like...
FOREVER Thank you very much :emoji_slight_smile:))))))))))