SHARE
TWEET

Warns Backup V1

a guest Jan 24th, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.   time : 1 minute
  3.   max : 3
  4.  
  5.  
  6. on join:
  7.    set {Warns.%player%} to 0
  8.    set {Warned.%player%} to {@time}
  9.  
  10. on quit:
  11.    set {Warned.LAST.%event-player%} to now
  12.  
  13. on first join:
  14.    set {Warns.%player%} to {@time}
  15.  
  16. every second:
  17.    loop all players:
  18.       if {Warned.%loop-player%} <= {@time}:
  19.          add 1 second to {Warned.%loop-player%}
  20.       else:
  21.          set {Warns.%loop-player%} to {@max}
  22.  
  23. command /warn [<player>] [<text>]:
  24.    permission: Rank.JrMod
  25.    permission message: &c&lInsufficient Permission! &7You do not have permission too perform this action.
  26.    trigger:
  27.       if {Warned.%player%} >= {@time}:
  28.          set {Warned.%player%} to 0 seconds
  29.       add 1 to {Warns.%arg-1%}
  30.       if {Warns.%arg-1%} >= {@max}:
  31.          Ban1(arg-1, "Maximum Warns", sender)
  32.       send "&c&lPunishment! &cYou have been warned by &7%sender%"  to arg-1  
  33.       send "&cReason: &o%arg-2%" to arg-1
  34.       send "&cWarns: %{Warns.%arg-1%}%" to arg-1
  35.  
  36. command /AmIWarned [<offline player>]:
  37.    trigger:
  38.       send "%{Warned.%arg%}%"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top