Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
on join:
if {totalwarn::%player's uuid%} is not set:
set {totalwarn::%player's uuid%} to 0
else if {totalwarn::%player's uuid%} is set:
stop
command /warn [<offlineplayer>] [<text>]:
permission: staff.warn
trigger:
if arg-2 is set:
send " " to arg-1
send "&c&lWARNING &7&l| &cYou has been warned because of &e%arg-2%" to arg-1
send "&c&lWARNING &7&l| &cStop breaking the rule or you will get banned!" to arg-1
send " " to arg-1
add 1 to {totalwarn::%arg-1's uuid%}
if {totalwarn::%arg-1's uuid%} = 3:
execute console command "/kick %arg-1% You have your 3rd warning!"
else if {totalwarn::%arg-1's uuid%} is 5:
execute console command "/essentials:tempban %arg-1% 1h You have your 5th warning!"
else if {totalwarn::%arg-1's uuid%} is 7:
execute console command "/essentials:tempban %arg-1% 8h You have your 7th warning!"
else if {totalwarn::%arg-1's uuid%} is 9:
execute console command "/essentials:tempban %arg-1% 3d You have your 9th warning!"
else if {totalwarn::%arg-1's uuid%} is 11:
execute console command "/essentials:ban %arg-1% You have your 11th warning!"
else if arg-2 is not set:
send " " to arg-1
send "&c&lWARNING &7&l| &cYou has been warned because of &e<none>" to arg-1
send "&c&lWARNING &7&l| &cStop breaking the rule or you will get banned!" to arg-1
send " " to arg-1
add 1 to {totalwarn::%arg-1's uuid%}
if {totalwarn::%arg-1's uuid%} is 3:
execute console command "/kick %arg-1% You have your 3rd warning!"
else if {totalwarn::%arg-1's uuid%} is 5:
execute console command "/essentials:tempban %arg-1% 1h You have your 5th warning!"
else if {totalwarn::%arg-1's uuid%} is 7:
execute console command "/essentials:tempban %arg-1% 8h You have your 7th warning!"
else if {totalwarn::%arg-1's uuid%} is 9:
execute console command "/essentials:tempban %arg-1% 3d You have your 9th warning!"
else if {totalwarn::%arg-1's uuid%} is 11:
execute console command "/ban %arg-1% You have your 11th warning!"
command /check [<text>] [<offlineplayer>]:
permission: staff.warn
trigger:
if arg-1 is "warn":
send " "
send "&e%arg-2%&e's &cWarn Status:"
send "&eTotal Warn: &c%{totalwarn::%arg-2's uuid%}%"
send " "
if arg-1 is not set:
send "&cUsage: /check warn <player name>"
command /unwarn [<offlineplayer>]:
permission: staff.warn
trigger:
if arg-1 is not set:
send "&cPut player name!"
if arg-1 is set:
remove 1 from {totalwarn::%arg-1's uuid%}
send " "
send "&aSuccess unwarned %arg-1%"
send " "