Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- czas_muta: 2
- variables:
- {mute.%player%} = false
- on chat:
- if {mute.%player%} is false:
- loop all {cenzura::slowa::*}
- if chat message contains "%loop-value%":
- cancel event
- send "&cZostales zmutowany za przeklinanie na czacie! &7(&b{@czas_muta} minut&7) &cprzez &4Serwer"
- loop all players:
- if loop-player is an op:
- send "&cZostales zmutowany za przeklinanie na czacie! &7(&b{@czas_muta} minut&7) &cprzez &4Serwer" to loop-player
- set {mute.%player%} to true
- wait {@czas_muta} minutes
- set {mute.%player%} to false
- else:
- stop
- else:
- cancel event
- send "&cJestes zmutowany na &7(&b{@czas_muta} minut&7)&cza przeklenstwa"
- command /cenzura [<text>] [<text>]:
- trigger:
- if player has permission "unmute.mute":
- if arg 1 is not set:
- send "&cBlad: &7Poprawne uzycie &6/cenzura dodaj/usun/lista [slowo]"
- if arg 1 is "dodaj":
- if arg 2 is set:
- add "%arg 2%" to {cenzura::slowa::*}
- else:
- send "&cBlad: &7Wpisz slowo ktore chcesz dodac!"
- if arg 1 is "usun":
- if arg 2 is set:
- remove "%arg 2%" from {cenzura::slowa::*}
- else:
- send "&cBlad: &7Wpisz slowo ktore chcesz dodac!"
- if arg 1 is "lista":
- send "&7Lista przeklenst:"
- send "&a%{cenzura::slowa::*}%"
- command /unmut [<text>]:
- trigger:
- if player has permission "unmute.mute":
- if arg is set:
- if {mute.%arg 1%} is true:
- send "&7Odmutowales &b%arg 1%"
- set {mute.%arg 1%} to false
- else:
- send "&7Ten gracz nie jest zmutowany"
- else:
- send "&7Uzycie /unmut &9nick"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement