Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {warns.of.%player%} = 0
- {number.of.warns} = 0
- command /warn <player> [<text>]:
- permission: warns.warn
- trigger:
- if {warns.of.%player%} is equal to 0:
- set {warns.of.%player%} to 1
- message "&8[&cPvPSmash&8] &8>> &cYou Have Been Given Your First Warning! &c&lReason: %arg 2%!" to arg 1
- message "&cYou Gave %arg 1% 1 Warning! Check Their Number Of Warns With /warninfo %arg 1%" to player
- else if {warns.of.%player%} is equal to 1:
- set {warns.of.%player%} to 2
- message "&c&8[&cPvPSmash&8] &8>> &cYou Have Been Given Your Second Warning! &c&lReason: %arg 2%!" to arg 1
- message "&cYou Gave %arg 1% Their Second Warning! Check Their Number of Warns With /warninfo %arg 1%" to player
- wait 30 ticks
- kick arg 1 due to "You Have Been Automatically Kicked For Recieving A Second Warning!"
- else if {warns.of.%player%} is equal to 3:
- cancel event
- message "&c%arg 1% Already Has 3/3 Warnings! Please Make Sure Action Has Been Taken, If So Please Clear Their Warnings!"
- else:
- {warns.of.%player%} is equal to 2:
- set {warns.of.%player%} to 3
- message "&c&lYou Recieved Your Final Warning! A Message Has Been Sent To All Staff Members, They Will Take Appropriate Action!" to arg 1
- message "&c&l%arg 1% Has Been Given Their Final Warning! Please Take Appropriate Action!" to all players
- command /clearwarns <player> [<text>]:
- permission: warns.clearwarns
- trigger:
- {warns.of.%player%} is not equal to 0:
- set {warns.of.%player%} to 0
- message "&cYou Cleared The Warnings Of %arg 1%" to player
- message "&bYour Warnings Have Been Reset!" to arg 1
- command /warnhelp:
- permission: warns.warnhelp
- trigger:
- message "&b-------------&c&lWarnings&b--------------------------"
- message "&bTo Warn A Player Use: &c/warn (player) (reason)"
- message "&bTo Reset A Players Warnings Use: &c/clearwarns (player)"
- message "&bTo Check Someones Number Of Warnings Do &c/warninfo (player)"
- message "&bTo Remove 1 Warning From A Player Do &c/delwarn (player)"
- message "&bIf There Are Any Bugs/Issues/Suggestions Please Contact &c&lCarrasp"
- message "&b-------------&c&lWarnings&b--------------------------"
- command /delwarn <player>:
- permission: warns.delwarn
- trigger:
- {warns.of.%player%} is not equal to 0:
- remove 1 from {warns.of.%player%}
- message "&cYou Removed 1 Warning From %arg 1%" to player
- message "&bYou Had 1 Warning Removed!" to arg 1
- command /warninfo <player>:
- permission: warns.warninfo
- trigger:
- message "&b%arg 1% Has [%{warns.of.%player%}%]/3 Warnings!" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement