# Tutaj zmieniasz czas w sekundach options: czas: 10 # Tutaj zmieniasz czas w sekundach on load: set {automessages::status} to "on" set {messagy} to 0 if folder "plugins/AutoMSG" doesn't exists: create folder "plugins/AutoMSG" if file "plugins/AutoMSG/Messages.yml" doesn't exists: create file "plugins/AutoMSG/Messages.yml" set "Messages" to "" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg1" to "&bAby zmienic wiadomosci wejdz w &aplugins -> AutoMSG -> Messages.yml" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg2" to "&bDodatkowa komenda &a/automsg" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg3" to "&bAby zmienic wiadomosci wejdz w &aplugins -> AutoMSG -> Messages.yml" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg4" to "&bDodatkowa komenda &a/automsg" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg5" to "&bAby zmienic wiadomosci wejdz w &aplugins -> AutoMSG -> Messages.yml" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg6" to "&bDodatkowa komenda &a/automsg" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg7" to "&bAby zmienic wiadomosci wejdz w &aplugins -> AutoMSG -> Messages.yml" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg8" to "&bDodatkowa komenda &a/automsg" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg9" to "&bAby zmienic wiadomosci wejdz w &aplugins -> AutoMSG -> Messages.yml" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.msg10" to "&bDodatkowa komenda &a/automsg" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.Skrypt" to "Podaj nazwe skryptu wykonywalnego" in yaml file "plugins/AutoMSG/Messages.yml" set "Messages.UWAGA" to "Aby zmienic kolor nie mozesz wpisac np. & lub paragrafa musisz sie posluzyc kodem: \xa7(tutaj wpisujesz kolor np 1 lub a)" in yaml file "plugins/AutoMSG/Messages.yml" if file "plugins/AutoMSG/Messages.yml" exists: set {msg::1} to colored single value "Messages.msg1" get of "plugins/AutoMSG/Messages.yml" set {msg::2} to colored single value "Messages.msg2" get of "plugins/AutoMSG/Messages.yml" set {msg::3} to colored single value "Messages.msg3" get of "plugins/AutoMSG/Messages.yml" set {msg::4} to colored single value "Messages.msg4" get of "plugins/AutoMSG/Messages.yml" set {msg::5} to colored single value "Messages.msg5" get of "plugins/AutoMSG/Messages.yml" set {msg::6} to colored single value "Messages.msg6" get of "plugins/AutoMSG/Messages.yml" set {msg::7} to colored single value "Messages.msg7" get of "plugins/AutoMSG/Messages.yml" set {msg::8} to colored single value "Messages.msg8" get of "plugins/AutoMSG/Messages.yml" set {msg::9} to colored single value "Messages.msg9" get of "plugins/AutoMSG/Messages.yml" set {msg::10} to colored single value "Messages.msg10" get of "plugins/AutoMSG/Messages.yml" set {skrypt} to single value "Messages.Skrypt" get of "plugins/AutoMSG/Messages.yml" every {@czas} seconds: if {automessages::status} is "off": set {messagy} to 0 stop add 1 to {messagy} if {messagy} is 1: if {messagy} is smaller than {max::messages}: broadcast "%{msg::1}%" if {messagy} is 2: if {messagy} is smaller than {max::messages}: broadcast "%{msg::2}%" if {messagy} is 3: if {messagy} is smaller than {max::messages}: broadcast "%{msg::3}%" if {messagy} is 4: if {messagy} is smaller than {max::messages}: broadcast "%{msg::4}%" if {messagy} is 5: if {messagy} is smaller than {max::messages}: broadcast "%{msg::5}%" if {messagy} is 6: if {messagy} is smaller than {max::messages}: broadcast "%{msg::6}%" if {messagy} is 7: if {messagy} is smaller than {max::messages}: broadcast "%{msg::7}%" if {messagy} is 8: if {messagy} is smaller than {max::messages}: broadcast "%{msg::8}%" if {messagy} is 9: if {messagy} is smaller than {max::messages}: broadcast "%{msg::9}%" if {messagy} is 10: if {messagy} is smaller than {max::messages}: broadcast "%{msg::10}%" if {messagy} is more than {max::messages}: set {messagy} to 0 command /automsg [] []: permission: automsg.admin trigger: arg 1 is not set: send "&a&m----------&6(AutoMSG)&a&m----------" send "&a/automsg on - &6Wlacza automessage'y" send "&a/automsg off - &6Wylacza automessage'y" send "&a/automsg max (od 1 do 10) - &6Ustawia ile ma sie wyswietlac AutoMessage'ow" send "&a/automsg reload - &6Wczytuje zapisane message'y (Reloaduje config)" send "&a&m----------&6(AutoMSG)&a&m----------" arg 1 is "on": if {automessages::status} is "off": set {automessages::status} to "on" send "&6AutoMSG -> &aWlaczyles Auto Message'y" else: send "&cAutoMessage'y sa juz wlaczone!" arg 1 is "off": if {automessages::status} is "on": set {automessages::status} to "off" send "&6AutoMSG -> &aWylaczyles Auto Message'y" else: send "&cAutoMessage'y sa juz wylaczone!" arg 1 is "max": arg 2 is set: set {ustawiono} to number-arg if {ustawiono} is more than 10: send "&cMozesz maxymalnie wlaczyc 10 AutoMessagow!" else: set {max::messages} to number-arg send "&6AutoMSG -> &aUstawiles maxymalnie %arg 2% AutoMessagow do wyswietlania!" arg 1 is "reload": reload script "%{skrypt}%" wait 3 seconds send "&6AutoMSG -> &eLadowanie plikow powiodlo sie &aSUKCESSEM!"