on script load: if folder "plugins/Skript/scripts/clan" doesn't exists: create folder "plugins/Skript/scripts/clan" if folder "plugins/Skript/scripts/clan/info" doesn't exists: create folder "plugins/Skript/scripts/clan/info" command /clan [] [] []: trigger: if arg 1 is not set: send "&7==========&eCLAN==========" to player send "&e/clan zaloz (tag) (nazwa) &f- &ezaklada clan" to player send "&e/clan zapros (nick) &f- &ezaprasza gracza do clanu" to player send "&e/clan usun &f- &eusuwa clan" to player send "&e/clan wyrzuc (nick) &f- &ewyrzuca gracza z clanu" to player send "&7==========&eCLAN==========" to player if arg 1 is "zaloz": if arg 2 is not set: send "&eNie wpisales tagu clanu" if arg 3 is not set: send "&eNie wpisales nazwy clanu" if arg 2 is set: if arg 3 is set: if file "plugins/Skript/scripts/clan/info/%arg 2%.yml" doesn't exists: create file "plugins/Skript/scripts/clan/info/%arg 2%.yml" set yaml value "c.tag" from file "plugins/Skript/scripts/clan/info/%arg 2%.yml" to "%arg 2%" set yaml value "c.nazwa" from file "plugins/Skript/scripts/clan/info/%arg 2%.yml" to "%arg 3%" set yaml value "c.zalozyciel" from file "plugins/Skript/scripts/clan/info/%arg 2%.yml" to "%player%" add "%player%" to yaml list "c.czlonkowie" from "plugins/Skript/scripts/clan/info/%arg 2%.yml" send "&eZalozyles clan o tagu &f%arg 2% &ea o nazwie &f%arg 3%" set {_tag.%player%} to argument 2 parsed as text prefixHead(player) prefixChat(player) else: send "&eTaki clan o takiej nazwie i o takim tagu juz istnieje!" stop function prefixHead(p: player): make {_p} see {_p} prefix as "[%{_tag.%{_p}%}]" function prefixChat(p: player): set the {_p} prefix to "[%{_tag.%{_p}%]" on join: prefixHead(player) on chat: prefixChat(player)