command /cc []: trigger: if player has permission "chat.mvhc": loop 100 times: send "" to all players send "&8&m-----------------------------" to all players send "&8>> &7Chat zostal &cwylaczony&7!" to all players send "&8>> &cWylaczyl: &a%player%" to all players send "&8&m-----------------------------" to all players else: send "&cBrak Permisji!" command /cl []: trigger: if player has permission "chat.mvhc": if {chat.off} is 1: set {chat.off} to 0 send "&8&m-----------------------------" to all players send "&8>> &7Chat zostal &awlaczony&7!" to all players send "&8>> &7Wlaczyl: &a%player%" to all players send "&8&m-----------------------------" to all players else: set {chat.off} to 1 send "&8&m-----------------------------" to all players send "&8>> &7Chat zostal &cwylaczony&7!" to all players send "&8>> &7Wylaczyl: &c%player%" to all players send "&8&m-----------------------------" to all players else: send "&cBrak Permisji!" on Chat: if {chat.off} is 1: if player has permission "mvhc.pisanie": stop else: cancel event send "&8>> &7Chat jest aktualnie &cwylaczany"