command /zglos []: trigger: if arg 1 is set: loop all players: if loop-player has permission "sprawdz.zgloszenia": send "&f[&cZGLOSZENIE&f] %arg 1% (Od: %player%)" to loop-player send "{@tag} &fWyslales zgloszenie o tresci: &a%arg 1%" send "{@tag} &fZgloszenie od: &a%player% &fo tresci: &a%arg 1%" to all ops set yaml value "zgloszenie" from file "plugins/zgloszenia/%player%.yml" to "[%now%] Zgloszenie przez: %player% tresc: %arg 1%" else: send "{@tag} &cPodaj tresc zgloszenia!" stop