#________ __________ #___ __ \_____ __ /___(_)____________ #__ /_/ / __ `/ __/_ /_ __ \_ __ \ #_ ____// /_/ // /_ _ / / /_/ / / / / #/_/ \__,_/ \__/ /_/ \____//_/ /_/ # __ ___ _ ___ _ # /__ | | | \ | |_ # \_| _|_ |_ |_/ _|_ |_ # options: # komendy command: gildia create: stworz # użycie create.usage: &cUżyj: &7/g stworz &e # symbol czatu gildii character: ! # błędy donthave: &cBłąd: &7Nie jesteś w gildii. tooshort: &cBłąd: &7Wiadomość nie może być pusta. existing: &cBłąd: &7Gildia o ten nazwie już istnieje. # powodzenia create.succes: &cGildia: &e%player% &7stworzył gildię &c%arg-2%&7. # format wiadomosci do gildii format: &6GILDIA &e%sender% &8» &7%message% on chat: if first character of message is "{@character}": cancel event if {g::%sender%} is not set: send "%{@donthave}%" to sender stop if length of message < 2: send "%{@tooshort}%" to sender stop loop all players: if {g::%loop-player%} = {g::%sender%}: replace first "{@character}" with "" in message send "%{@format}%" to loop-player on damage: if {g::%attacker%} = {g::%victim%}: if {g::%victim%::pvp} is not set: cancel event command /{@command} [] []: aliases: g trigger: if arg-1 is {@create}: if arg-2 is not set: send "%{@create.usage}%" stop if arg-2 is {g::*}: send "%{@existing}%" to player stop set {g::%player%} to arg-2 send "{@%create.succes%}" to all players set {g::%player%::leader} to player if arg-1 is pvp: if {g::%player%::pvp} is not set: set {g::%player%::pvp} to true loop all players: if {g::%loop-player%} = {g::%player%}: send "&cGildia: &7Walka w gildii zostala &cwłą to loop-player