Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- mutelength: 10m #How long you want them muted for
- checktime: 5 #in seconds
- maxmessages: 3 #How many messages they can send in a row
- P: &8[&cIgniteUHC&8] #Prefix
- on chat:
- player does not have the permission "skript.op"
- add 1 to {spamcheck::%player%}
- wait 3 ticks
- if {spamcheck::%player%} is set:
- if {spamcheck::%player%} is {@maxmessages}:
- command "/mute %player% {@mutelength}"
- loop all players:
- loop-player has permission "skript.op"
- send "{@P} &b%player% &ahas been muted for &b{@mutelength} &aminutes as he spammed messages &b&l{@maxmessages} &atimes!" to loop-player
- message "{@P} &aYou have been muted for &b{@mutelength} &aminutes as you spammed messages &b&l{@maxmessages} &atimes!"
- set {checktime} to {@checktime}
- wait {checktime} seconds
- delete {spamcheck::%player}
Advertisement
Add Comment
Please, Sign In to add comment