Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /warn [<player>]:
- permission: essentials.warn
- permission message: &8»&7 You haven't got permission &cessentials.warn&7 to execute this command
- trigger:
- if arg-1 is set:
- if arg-player is not set:
- message "&8» &7/warn [<player>]"
- if arg-player is set:
- add 1 to {warns.%arg-player%}
- message "&8» &c%arg-player%&7 has been warned. It currently has &8[&c%{warns.%arg-player%}%&8]&7 warns"
- send "&8» &7You've been warned. You have &8[&c%{warns.%arg-player%}%&8] &7warns" to arg-player
- command /warns <offlineplayer>:
- usage: /warns (player)
- trigger:
- add 0 to {warns.%arg-1%}
- message "&8» &c%arg-1%&7 has &8[&c%{warns.%arg-1%}%&8]&7 warns"
- command /unwarn [<player>]:
- permission: essentials.warn
- permission message: &8»&7 You haven't got permission &cessentials.warn&7 to execute this command
- trigger:
- if arg-1 is set:
- if arg-player is not set:
- message "&8» &7/unwarn [<player>]"
- if arg-player is set:
- if {warns.%arg-player%} is greater than 0:
- remove 1 from {warns.%arg-player%}
- message "&8» &c%arg-player%&7 has been unwarned. It currently has &8[&c%{warns.%arg-player%}%&8]&7 warns"
- send "&8» &7You've been unwarned. You have &8[&c%{warns.%arg-player%}%&8] &7warns"
- else:
- message "&8» &7Player cannot be unwarned"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement