1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved I need a /warn skript

Discussion in 'Requests' started by FrostPVP™️, Apr 17, 2021.

  1. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    no I'm grounded :emoji_frowning: u can join tho
    wait... I'm not signed in D:
     
  2. Frog

    Frog Member

    Joined:
    Apr 30, 2021
    Messages:
    17
    Likes Received:
    7
    oh... can u op me through the console or somethin?
     
    • Like Like x 1
  3. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    LOL nvm I do have access to the console because I'm using a different gmail with a different password I'm so dumb
    --- Double Post Merged, Apr 30, 2021, Original Post Date: Apr 30, 2021 ---
    O
    Oh wait... omg whatever
     
  4. Frog

    Frog Member

    Joined:
    Apr 30, 2021
    Messages:
    17
    Likes Received:
    7
    my ign is BigBrainFrog if u can op me xD
     
    • Informative Informative x 1
  5. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    Farbox.minehut.gg
     
  6. Frog

    Frog Member

    Joined:
    Apr 30, 2021
    Messages:
    17
    Likes Received:
    7
    Code (Text):
    1. #Made by BigBrainFrog / Frog
    2.  
    3. variables:
    4.   {warns}  = 0
    5.  
    6. # Warn Command
    7. command /warn <offline player> <text>:
    8.   permission: warn.sk
    9.   permission message: &4&lYou do not have permission to use this command!
    10.   trigger:
    11.     if arg-1 is set:
    12.       if arg-2 is set:
    13.         add 1 to {warns.%arg-1's uuid%}
    14.         broadcast "&a----------------------------------------------"
    15.         broadcast "&c[&6Warning System&c] &6%player% &cwarned &6%arg-1%"
    16.         broadcast "&c[&6Warning System&c] They now have %{warns.%arg-1's uuid%}% warn(s)."
    17.         broadcast "&c[&6Warning System&c] Reason: &6%arg-2%"
    18.         broadcast "&a----------------------------------------------"
    19. # Checks if warn count is divisible by 5 and if it is, it bans the player
    20.         {warns.%arg-1's uuid%} is divisible by 5:
    21.           {warns.%arg-1's uuid%} is not 0:
    22.             console command "tempban %arg-1% 3h &4&lHaving too many warnings!"
    23.  
    24. # Unwarn Command
    25. command /unwarn <offline player>:
    26.   permission: warn.sk
    27.   permission message: &4&lYou do not have permission to use this command!
    28.   trigger:
    29.     if arg-1 is set:
    30.       if {warns.%arg-1's uuid%} is 0:
    31.         send "&a----------------------------------------------" to player
    32.         send "&c[&6Warning System&c] You can't have negative warns!" to player
    33.         send "&a----------------------------------------------" to player
    34.       if {warns.%arg-1's uuid%} is not 0:
    35.         remove 1 from {warns.%arg-1's uuid%}
    36.         broadcast "&a----------------------------------------------"
    37.         broadcast "&c[&6Warning System&c] &6%player% &cunwarned &6%arg-1%"
    38.         broadcast "&c[&6Warning System&c] They now have %{warns.%arg-1's uuid%}% warn(s)."
    39.         broadcast "&a----------------------------------------------"
    40.  
    41. # Check Warns Command
    42. command /checkwarns <offline player>:
    43.   permission: warn.sk
    44.   permission message: &4&lYou do not have permission to use this command!
    45.   trigger:
    46.     broadcast "&a----------------------------------------------"
    47.     broadcast "&c[&6Warning System&c] &6%arg-1% &chas %{warns.%arg-1's uuid%}% &cwarn(s)."
    48.     broadcast "&a----------------------------------------------"
    49.  
    50. # Clear Warns Command
    51. command /clearwarns <offline player>:
    52.   permission: warn.sk
    53.   permission message: &4&lYou do not have permission to use this command!
    54.   trigger:
    55.     set {warns.%arg-1's uuid%} to 0
    56.     broadcast "&a----------------------------------------------"
    57.     broadcast "&c[&6Warning System&c] &6%player% &chas cleared &6%arg-1%&6's &cwarnings."
    58.     broadcast "&a----------------------------------------------"
    ^ what you asked for <3
     
    • Winner Winner x 2
  7. FrostPVP™️

    FrostPVP™️ Active Member

    Joined:
    Feb 12, 2021
    Messages:
    63
    Likes Received:
    3
    Thank you
    I've been trying to get a /warn skript for like...
    FOREVER Thank you very much :emoji_slight_smile:))))))))))
     
  8. Frog

    Frog Member

    Joined:
    Apr 30, 2021
    Messages:
    17
    Likes Received:
    7
    np
     
    • Like Like x 1

Share This Page

Loading...