command /mute [] [] [] []: permission: x.mute trigger: if arg 1 is set: if arg 1 is "%player%": send "&4Nie możesz wyciszyć siebie!" if arg 1 is not "%player%": set {muted.%arg 1%} to true if arg 2 is set: if arg 3 is not set: send "&cMusisz wybrać czas! (minute, hour, day oraz perm)" if arg 3 is set: if arg 3 is "h" or "hour": set {muted.%arg 1%.tm} to 1 if arg 3 is "m" or "minute": set {muted.%arg 1%.tm} to 0 if arg 3 is "d" or "day": set {muted.%arg 1%.tm} to 2 if arg 3 is "perm" or "zawsze": set {muted.%arg 1%.tm} to 3 if arg 4 is not set: send "Musisz podać powód" if arg 4 is set: send "Zostałeś wyciszony na %arg 2% %arg 3% za %arg 4%" to arg 1 send "&fGracz &a%arg 1% &fzostał wyciszony za %arg 4%" set {muted.%arg 1%.t} to arg 2 every 1 minute: loop all players: if {muted.%loop-value%.tm} is 0: if {muted.%loop-value%.t} is more than 0: remove 1 from {muted.%loop-value%.t} every 1 hour: loop all players: if {muted.%loop-value%.tm} is 1: if {muted.%loop-value%.t} is more than 0: remove 1 from {muted.%loop-value%.t} every 1 day: loop all players: if {muted.%loop-value%.tm} is 2: if {muted.%loop-value%.t} is more than 0: remove 1 from {muted.%loop-value%.t} every 1 second: loop all players: if {muted.%loop-value%.t} is less than 1: set {muted.%loop-value%} to false on chat: if {muted.%player%} is true: send "&4Sorry, jesteś wyciszony." cancel event command /unmute : permission: x.unmute trigger: set {muted.%arg 1%} to false send "&aBlokada pisania ściągnięta dla %arg 1%." send "&aMożesz już pisać." to arg 1