Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- chat: &c&lRubic &e&l» &7
- variables:
- {warn::%player%} = 0
- command /warn [<player>] [<text>]:
- trigger:
- if player has permission "warn.use":
- if arg-1 and arg-2 are set:
- send "{@chat}You Have Been Warrned For The Reason &3%arg-2%" to arg-1
- loop all players:
- if loop-player is not arg-1
- send "{@chat} &c%arg-1% &7Was Warrned For The Reason: &3%arg-2%" to loop-players
- add 1 to {warn::%arg-1%}
- if {warn::%arg-1%} < 4:
- stop
- if {warn::%arg-1%} = 4:
- kick arg-1 due to "You Have Been Warned 3 Times
- broadcast "{@chat}&c5arg-1% &7was Kicked For Reaching 3 Warrnings"
- set {warn::%arg-1%} to 0
- stop
- if arg-1 is not set:
- send "{@chat}&cCorrect Usage: &3/warn (player) (reason)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement