on load: if folder "plugins/Toolsy" doesn't exists: create folder "plugins/Toolsy" if folder "plugins/Toolsy/AntyBot" doesn't exists: create folder "plugins/Toolsy/AntyBot" if folder "plugins/Toolsy/Zgloszenia" doesn't exists: create folder "plugins/Toolsy/Zgloszenia" if file "plugins/Toolsy/wiadomosci.yml" doesn't exists: create file "plugins/Toolsy/wiadomosci.yml" set "config" to "" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.heal" to "&6&lToolsy &8» &aZostales uleczony!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.healplayer" to "&6&lToolsy &8» &aUleczono gracza &c{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.healerror" to "&6&lToolsy &8» &cTwoje zycie jest pelne!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.healerrorplayer" to "&6&lToolsy &8» &cZycie tego gracza jest pelne!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.feed" to "&6&lToolsy &8» &aTwoj glod zostal zaspokojony" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.feedplayer" to "&6&lToolsy &8» &aZaspokoiles glod gracza &c{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.feederror" to "&6&lToolsy &8» &cTwoj glod jest pelny!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.feederrorplayer" to "&6&lToolsy &8» &cGlod tego gracza jest pelny!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.gamemode1player" to "&6&lToolsy &8» &7Tryb gracza &c{gracz} &7zostal zmieniony na &bcreative" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.gamemode0player" to "&6&lToolsy &8» &7Tryb gracza &c{gracz} &7zostal zmieniony na &esurvival" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.gamemode1" to "&6&lToolsy &8» &7Twoj tryb gry zostal zmieniony na &bcreative" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.gamemode0" to "&6&lToolsy &8» &7Twoj tryb gry zostal zmieniony na &esurvival" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.playeroffline" to "&6&lToolsy &8» &cGracz jest offline" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.kickblocked" to "&6&lToolsy &8» &cGracz ma za wysokie uprawnienia abys mogl go wyrzucic" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.kickplayer" to "&cTwoj nick: &6{gracz}||&cAdministrator: &6{administrator}||&cData: &6{data}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.kickplayerpowod" to "&cTwoj nick: &6{gracz}||&cAdministrator: &6{administrator}||&cPowod: &6{powod}||&cData: &6{data}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.kickplayerbroadcast" to "&6&lToolsy &8» &7Gracz &6{gracz} &7zostal wyrzucony z serwera przez &6{administrator}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.kickplayerpowodbroadcast" to "&6&lToolsy &8» &7Gracz &6{gracz} &7zostal wyrzucony z serwera przez &6{administrator} &7za &6{powod}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.rename" to "&6&lToolsy &8» &7Poprawnie zmieniles nazwe przedmiotu na: {nazwa}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.notairerror" to "&6&lToolsy &8» &cMusisz cos trzymac w dloni!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.lore" to "&6&lToolsy &8» &7Poprawnie zmieniles opis przedmiotu na: {nazwa}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.hat" to "&6&lToolsy &8» &aCiesz sie nowym kapeluszem!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.haterror" to "&6&lToolsy &8» &cNie mozesz zalozyc tego itemku na glowe." in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.haterror2" to "&6&lToolsy &8» &cNajpierw zdejmij przedmiot z glowy!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.pluginsprawdzerror" to "&6&lToolsy &8» &cNie odnaleziono pluginu: &a{nazwa}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.pluginsprawdzdone" to "&6&lToolsy &8» &7Pomyslnie znaleziono plugin: &a{nazwa}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.pluginon" to "&6&lToolsy &8» &7Plugin &a{nazwa} &7zostal &2wlaczony" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.pluginoff" to "&6&lToolsy &8» &7Plugin &a{nazwa} &7zostal &4wylaczony" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.sethome" to "&6&lToolsy &8» &7Utworzono nowy dom: &a{nazwa}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.homeerror" to "&6&lToolsy &8» &cRuszyles sie. Teleportacja przerwana." in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.hometp" to "&6&lToolsy &8» &7Zostales przeniesiony na swoj dom" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.homebrak" to "&6&lToolsy &8» &cNie odnaleziono domu!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.homeremove" to "&6&lToolsy &8» &7Dom &a{nazwa} &7zostal pomyslnie &cusuniety" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.homeczas" to "&6&lToolsy &8» &7Za &a5 &7sekund zostaniesz przeteleportowany do domu: &a{nazwa}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.antybotadd" to "&6&lToolsy &8» &7Gracz &6{gracz} &7zostal dodany do antybota" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.antybotzwerfyikowany" to "&6&lToolsy &8» &cGracz &6{gracz} &cjuz jest zweryfikowany!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.antybotniezwerfyikowany" to "&6&lToolsy &8» &cGracz &6{gracz} &cnie jest zweryfikowany!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.antybotremove" to "&6&lToolsy &8» &7Gracz &6{gracz} &7zostal &4usuniety &7z antybota" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.antybotsprawdz" to "&6&lToolsy &8» &7Gracz &6{gracz} &7jest zweryfikowany!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.repair" to "&6&lToolsy &8» &7Pomyslnie naprawiono przedmiot" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.repairerror" to "&6&lToolsy &8» &7Aby naprawic item musisz miec go w lapie" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.propozycja" to "&6&lToolsy &8» &7Propozycja zostala wyslana. Tresc: &6{tresc}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.propozycjaerror" to "&6&lToolsy &8» &cJuz zlozylesz jedna propozycje. Poczekaj az admin ja odczyta." in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.helpop" to "&4&l[&c&lHelpOp&4&l] &6{nazwa}: &7{tresc}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.headdone" to "&6&lToolsy &8» &7Otrzymales swoja glowe" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.headpropo" to "&6&lToolsy &8» &7Wpisz /head aby otrzymac glowe innego gracza" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.headdone1" to "&6&lToolsy &8» &7Otrzymales glowe gracza: &6{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.komendaoff" to "&6&lToolsy &8» &4Komenda jest wylaczona!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.komendaon" to "&6&lToolsy &8» &7Komenda jest juz &2wlaczona" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.komendaon1" to "&6&lToolsy &8» &7Komenda &6/{komenda} &7zostala &2wlaczona" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.komendaoff1" to "&6&lToolsy &8» &7Komenda jest juz &4wylaczona" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.komendaoff2" to "&6&lToolsy &8» &7Komenda &6/{komenda} &7zostala &4wylaczona" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.broadcast" to "&4[&cBroadcast&4] {tekst}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.clear" to "&6&lToolsy &8» &7Twoj ekwipunek zostal wyczyszczony" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.clearplayer" to "&6&lToolsy &8» &7Ekwipunek gracza &6{gracz} &7zostal wyczyszczony." in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.inventory" to "&6&lToolsy &8» &7Otworzono ekwipunek gracza: &6{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.tps" to "&6&lToolsy &8» &7Tps: &6{tps}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.chaton" to "&6&lToolsy &8» &2» &7Chat zostal wlaczony przez &6{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.chatonerror" to "&6&lToolsy &8» &cChat juz jest wylaczony!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.chatoff" to "&2» &7Chat zostal wylaczony przez &6{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.chatofferror" to "&6&lToolsy &8» &cChat juz jest wlaczony!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.chatclear" to "&2» &7Chat zostal wyczyszczony przez &6{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.chatclearplayer" to "&2» &7Twoj chat zostal wyczyszczony przez &6{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.join" to "&8&l[&2&l+&8&l] &7{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.quit" to "&8&l[&4&l-&8&l] &7{gracz}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.czas" to "&6&lToolsy &8» &7Twoj Spedzony czas na serwerze: &6Sekundy: {sekundy} Minuty: {minuty} Godziny: {godziny} Dni: {dni}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.czasplayer" to "&6&lToolsy &8» &7Spedzony czas gracza &6{gracz} na serwerze &7wynosi: &6Sekundy: {sekundy} Minuty: {minuty} Godziny: {godziny} Dni: {dni}" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.graczniebylo" to "&6&lToolsy &8» &cTakiego gracza nigdy nie bylo na serwerze!" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.setspawn" to "&6&lToolsy &8» &7Ustawiles spawn" in yaml file "plugins/Toolsy/wiadomosci.yml" set "config.spawntp" to "&6&lToolsy &8» &7Zostales przeteleportowany na spawn" in yaml file "plugins/Toolsy/wiadomosci.yml" wait 2 tick set {wiadomosc.heal} to colored single value "config.heal" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.healplayer} to colored single value "config.healplayer" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.healerror} to colored single value "config.healerror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.healerrorplayer} to colored single value "config.healerrorplayer" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.feed} to colored single value "config.feed" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.feedplayer} to colored single value "config.feedplayer" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.feederror} to colored single value "config.feederror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.feederrorplayer} to colored single value "config.feederrorplayer" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.gamemode1player} to colored single value "config.gamemode1player" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.gamemode0player} to colored single value "config.gamemode0player" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.gamemode1} to colored single value "config.gamemode1" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.gamemode0} to colored single value "config.gamemode0" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.playeroffline} to colored single value "config.playeroffline" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.kickblocked} to colored single value "config.kickblocked" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.kickplayer} to colored single value "config.kickplayer" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.kickplayerpowod} to colored single value "config.kickplayerpowod" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.kickplayerbroadcast} to colored single value "config.kickplayerbroadcast" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.kickplayerpowodbroadcast} to colored single value "config.kickplayerpowodbroadcast" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.rename} to colored single value "config.rename" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.notairerror} to colored single value "config.notairerror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.lore} to colored single value "config.lore" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.hat} to colored single value "config.hat" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.haterror} to colored single value "config.haterror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.haterror2} to colored single value "config.haterror2" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.pluginsprawdzerror} to colored single value "config.pluginsprawdzerror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.pluginsprawdzdone} to colored single value "config.pluginsprawdzdone" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.pluginon} to colored single value "config.pluginon" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.pluginoff} to colored single value "config.pluginoff" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.sethome} to colored single value "config.sethome" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.homeerror} to colored single value "config.homeerror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.hometp} to colored single value "config.hometp" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.homebrak} to colored single value "config.homebrak" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.homeremove} to colored single value "config.homeremove" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.homeczas} to colored single value "config.homeczas" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.antybotadd} to colored single value "config.antybotadd" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.antybotzwerfyikowany} to colored single value "config.antybotzwerfyikowany" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.antybotniezwerfyikowany} to colored single value "config.antybotniezwerfyikowany" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.antybotremove} to colored single value "config.antybotremove" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.antybotsprawdz} to colored single value "config.antybotsprawdz" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.repair} to colored single value "config.repair" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.repairerror} to colored single value "config.repairerror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.propozycja} to colored single value "config.propozycja" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.propozycjaerror} to colored single value "config.propozycjaerror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.helpop} to colored single value "config.helpop" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.komendaoff} to colored single value "config.komendaoff" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.komendaon} to colored single value "config.komendaon" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.komendaon1} to colored single value "config.komendaon1" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.komendaoff1} to colored single value "config.komendaoff1" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.komendaoff2} to colored single value "config.komendaoff2" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.headdone} to colored single value "config.headdone" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.headpropo} to colored single value "config.headpropo" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.headdone1} to colored single value "config.headdone1" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.broadcast} to colored single value "config.broadcast" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.clear} to colored single value "config.clear" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.clearplayer} to colored single value "config.clearplayer" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.inventory} to colored single value "config.inventory" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.tps} to colored single value "config.tps" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.chaton} to colored single value "config.chaton" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.chatonerror} to colored single value "config.chatonerror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.chatoff} to colored single value "config.chatoff" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.chatofferror} to colored single value "config.chatofferror" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.chatclear} to colored single value "config.chatclear" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.chatclearplayer} to colored single value "config.chatclearplayer" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.join} to colored single value "config.join" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.quit} to colored single value "config.quit" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.czas} to colored single value "config.czas" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.czasplayer} to colored single value "config.czasplayer" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.graczniebylo} to colored single value "config.graczniebylo" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.setspawn} to colored single value "config.setspawn" get of "plugins/Toolsy/wiadomosci.yml" set {wiadomosc.spawntp} to colored single value "config.spawntp" get of "plugins/Toolsy/wiadomosci.yml" command /heal []: trigger: if {heal} is true: if arg 1 is not set: if player has permission "wario.tools.heal": if player's health is not 10: heal the player by 10 hearts set {_wiadomosc} to "%{wiadomosc.heal}%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.healerror}%" send "%{_wiadomosc1}%" stop else: send "&cBrak uprawnien &7(&6wario.tools.heal&7)" stop if arg 1 is set: if arg 1 is online: if player has permission "wario.tools.heal.player": if argument's health is not 10: heal the argument by 10 hearts set {_wiadomosc} to "%{wiadomosc.heal}%" send "%{_wiadomosc}%" to arg 1 set {_wiadomosc1} to "%{wiadomosc.healplayer}%" replace all "{gracz}" in {_wiadomosc1} with "%arg 1%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.healerrorplayer}%" send "%{_wiadomosc2}%" stop else: send "&cBrak uprawnien &7(&6wario.tools.heal.player&7)" stop else: set {_wiadomosc2} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc2}%" stop else: set {_wiadomosc3} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc3}%" stop command /feed []: trigger: if {feed} is true: if arg 1 is not set: if player has permission "wario.tools.feed": if player's food level is not 10: set the player's food level to 10 set {_wiadomosc} to "%{wiadomosc.feed}%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.feederror}%" send "%{_wiadomosc1}%" stop else: send "&cBrak uprawnien &7(&6wario.tools.feed&7)" stop if arg 1 is set: if arg 1 is online: if player has permission "wario.tools.feed.player": if argument's food level is not 10: set the argument's food level to 10 set {_wiadomosc} to "%{wiadomosc.feed}%" send "%{_wiadomosc}%" to arg 1 set {_wiadomosc1} to "%{wiadomosc.feedplayer}%" replace all "{gracz}" in {_wiadomosc1} with "%arg 1%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.feederrorplayer}%" send "%{_wiadomosc2}%" stop else: send "&cBrak uprawnien &7(&6wario.tools.feed.player&7)" stop else: set {_wiadomosc2} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc2}%" stop else: set {_wiadomosc3} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc3}%" stop command /gm [] [] []: permission: wario.tools.gamemode permission message: &cBrak uprawnien &7(&6wario.tools.gamemode&7) trigger: if {gamemode} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/gm <0,1>" stop if arg 1 is 1: if arg 2 is set: if arg 2 is online: set the gamemode of argument 2 to creative set {_wiadomosc} to "%{wiadomosc.gamemode1}%" send "%{_wiadomosc}%" to arg 2 set {_wiadomosc1} to "%{wiadomosc.gamemode1player}%" replace all "{gracz}" in {_wiadomosc1} with "%arg 2%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc2}%" stop if arg 1 is 0: if arg 2 is set: if arg 2 is online: set the gamemode of argument 2 to survival set {_wiadomosc} to "%{wiadomosc.gamemode2}%" send "%{_wiadomosc}%" to arg 2 set {_wiadomosc1} to "%{wiadomosc.gamemode0player}%" replace all "{gracz}" in {_wiadomosc1} with "%arg 2%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc2}%" stop if arg 1 is 1: if arg 2 is not set: set the gamemode of the player to creative set {_wiadomosc} to "%{wiadomosc.gamemode1}%" send "%{_wiadomosc}%" stop if arg 1 is 0: if arg 2 is not set: set the gamemode of the player to survival set {_wiadomosc1} to "%{wiadomosc.gamemode0}%" send "%{_wiadomosc1}%" stop if arg 1 is not 0 or 1: send "&6&lToolsy &8» &cPoprawne uzycie: &7/gm <0,1>" stop else: set {_wiadomosc3} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc3}%" stop command /kick [] []: permission: wario.tools.kick permission message: &cBrak uprawnien &7(&6wario.tools.kick&7) trigger: if {kick} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/kick " send "&6&lToolsy &8» &cPoprawne uzycie: &7/kick " stop if arg 1 is set: if arg 2 is not set: if arg 1 is online: if arg 1 has permission "wario.tools.kick.blocked": set {_wiadomosc} to "%{wiadomosc.kickblocked}%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.kickplayer}%" replace all "{gracz}" in {_wiadomosc1} with "%arg 1%" replace all "{administrator}" in {_wiadomosc1} with "%sender%" replace all "{data}" in {_wiadomosc1} with "%now%" replace all "||" in {_wiadomosc1} with "%nl%" kick the arg 1 due to "%{_wiadomosc1}%" set {_wiadomosc2} to "%{wiadomosc.kickplayerbroadcast}%" replace all "{gracz}" in {_wiadomosc2} with "%arg 1%" replace all "{administrator}" in {_wiadomosc2} with "%sender%" broadcast "%{_wiadomosc2}%" stop else: set {_wiadomosc3} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc3}%" stop if arg 1 is set: if arg 2 is set: if arg 1 is online: if arg 1 has permission "wario.tools.kick.blocked": set {_wiadomosc4} to "%{wiadomosc.kickblocked}%" send "%{_wiadomosc4}%" stop else: set {_wiadomosc5} to "%{wiadomosc.kickplayerpowod}%" replace all "{gracz}" in {_wiadomosc5} with "%arg 1%" replace all "{administrator}" in {_wiadomosc5} with "%sender%" replace all "{powod}" in {_wiadomosc5} with "%coloured arg 2%" replace all "{data}" in {_wiadomosc5} with "%now%" replace all "||" in {_wiadomosc5} with "%nl%" kick the arg 1 due to "%{_wiadomosc5}%" set {_wiadomosc6} to "%{wiadomosc.kickplayerpowodbroadcast}%" replace all "{gracz}" in {_wiadomosc6} with "%arg 1%" replace all "{administrator}" in {_wiadomosc6} with "%sender%" replace all "{powod}" in {_wiadomosc6} with "%coloured arg 2%" broadcast "%{_wiadomosc6}%" stop else: set {_wiadomosc7} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc7}%" stop else: set {_wiadomosc8} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc8}%" stop command /rename []: permission: wario.tools.rename permission message: &cBrak uprawnien &7(&6wario.tools.rename&7) trigger: if {rename} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/rename " stop if arg 1 is set: if player's tool is not air: set the name of player's tool to coloured arg set {_wiadomosc} to "%{wiadomosc.rename}%" replace all "{nazwa}" in {_wiadomosc} with "%coloured arg%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.notairerror}%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc2}%" stop command /lore []: permission: wario.tools.lore permission message: &cBrak uprawnien &7(&6wario.tools.lore&7) trigger: if {lore} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/lore " stop if arg 1 is set: set lore of player's tool to coloured arg if player's tool is not air: set {_wiadomosc} to "%{wiadomosc.lore}%" replace all "{nazwa}" in {_wiadomosc} with "%coloured arg%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.notairerror}%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc3} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc3}%" stop command /hat: permission: wario.tools.hat permission message: &cBrak uprawnien &7(&6wario.tools.hat&7) trigger: if {hat} is true: if player's tool is not air: if id of player's tool is greater than 255: set {_wiadomosc} to "%{wiadomosc.haterror}%" send "%{_wiadomosc}%" stop else: if helmet slot of the player is not empty: set {_wiadomosc1} to "%{wiadomosc.haterror2}%" send "%{_wiadomosc1}%" stop else: set helmet of the player to player's tool set {_wiadomosc3} to "%{wiadomosc.hat}%" send "%{_wiadomosc3}%" stop else: send "&cMusisz trzymac cos w dloni." stop else: set {_wiadomosc3} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc3}%" stop command /plugin [] []: permission: wario.tools.plugin permission message: &cBrak uprawnien &7(&6wario.tools.plugin&7) trigger: if {plugin} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/plugin " stop if arg 2 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/plugin " stop if arg 1 is "sprawdz": if arg 2 is set: if file "plugins/%arg 2%.jar" doesn't exists: set {_wiadomosc} to "%{wiadomosc.pluginsprawdzerror}%" replace all "{nazwa}" in {_wiadomosc} with "%arg 2%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.pluginsprawdzdone}%" replace all "{nazwa}" in {_wiadomosc1} with "%arg 2%" send "%{_wiadomosc1}%" stop if arg 1 is "on": if arg 2 is set: if file "plugins/%arg 2%.jar" doesn't exists: set {_wiadomosc2} to "%{wiadomosc.pluginsprawdzerror}%" replace all "{nazwa}" in {_wiadomosc2} with "%arg 2%" send "%{_wiadomosc2}%" stop else: enable plugin "%arg 2%" set {_wiadomosc3} to "%{wiadomosc.pluginon}%" replace all "{nazwa}" in {_wiadomosc3} with "%arg 2%" send "%{_wiadomosc3}%" stop if arg 1 is "off": if arg 2 is set: if file "plugins/%arg 2%.jar" doesn't exists: set {_wiadomosc4} to "%{wiadomosc.pluginsprawdzerror}%" replace all "{nazwa}" in {_wiadomosc4} with "%arg 2%" send "%{_wiadomosc4}%" stop else: disable plugin "%arg 2%" set {_wiadomosc5} to "%{wiadomosc.pluginoff}%" replace all "{nazwa}" in {_wiadomosc5} with "%arg 2%" send "%{_wiadomosc5}%" stop else: set {_wiadomosc6} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc6}%" stop command /sethome []: permission: wario.tools.sethome permission message: &cBrak uprawnien &7(&6wario.tools.sethome&7) trigger: if {sethome} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/sethome " stop if arg 1 is set: set {toolsy::%argument%::%player%} to location of player add argument to {%player%::listahome::*} set {_wiadomosc} to "%{wiadomosc.sethome}%" replace all "{nazwa}" in {_wiadomosc} with "%argument%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc1}%" stop command /home []: permission: wario.tools.home permission message: &cBrak uprawnien &7(&6wario.tools.home&7) trigger: if {home} is true: if arg 1 is not set: send "&6&lToolsy &8» &7Lista domow: &a%{%player%::listahome::*}%" stop if arg 1 is set: if {toolsy::%argument%::%player%} is set: set {_x.%player%} to x-location of player set {_z.%player%} to z-location of player set {_y.%player%} to y-location of player set {_wiadomosc} to "%{wiadomosc.homeczas}%" replace all "{nazwa}" in {_wiadomosc} with "%argument%" send "%{_wiadomosc}%" loop 5 times: if difference between x-location of player and {_x.%player%} is bigger than 0.5: set {_wiadomosc1} to "%{wiadomosc.homeerror}%" send "%{_wiadomosc1}%" stop if difference between y-location of player and {_y.%player%} is bigger than 0.5: set {_wiadomosc2} to "%{wiadomosc.homeerror}%" send "%{_wiadomosc2}%" stop if difference between z-location of player and {_z.%player%} is bigger than 0.5: set {_wiadomosc3} to "%{wiadomosc.homeerror}%" send "%{_wiadomosc3}%" stop wait 1 second teleport player to {toolsy::%argument%::%player%} set {_wiadomosc4} to "%{wiadomosc.hometp}%" send "%{_wiadomosc4}%" stop else: set {_wiadomosc5} to "%{wiadomosc.homebrak}%" send "%{_wiadomosc5}%" stop else: set {_wiadomosc6} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc6}%" stop command /delhome []: permission: wario.tools.delhome permission message: &cBrak uprawnien &7(&6wario.tools.delhome&7) trigger: if {delhome} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/delhome " stop if arg 1 is set: if {toolsy::%argument%::%player%} is set: remove argument from {%player%::listahome::*} set {_wiadomosc} to "%{wiadomosc.homeremove}%" replace all "{nazwa}" in {_wiadomosc} with "%argument%" send "%{_wiadomosc}%" else: set {_wiadomosc1} to "%{wiadomosc.homebrak}%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc2}%" stop command /antybot [] []: permission: wario.antybot permission message: &cBrak uprawnien &7(&6wario.tools.antybot&7) trigger: if {antybot} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPodaj argument!" send "&6&lToolsy &8» &7Dostepne: &6dodaj&7, &6usun&7, &6sprawdz&7." stop if arg 2 is not set: send "&6&lToolsy &8» &cPodaj gracza!" stop if arg 1 is "dodaj": if arg 2 is set: if file "plugins/Toolsy/AntyBot/%arg 2%.yml" doesn't exists: create file "plugins/Toolsy/AntyBot/%arg 2%.yml" set "Data weryfikacji:" to "Dodany przez administratora: %sender%" in yaml file "plugins/Toolsy/AntyBot/%arg 2%.yml" set {_wiadomosc} to "%{wiadomosc.antybotadd}%" replace all "{gracz}" in {_wiadomosc} with "%arg 2%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.antybotzwerfyikowany}%" replace all "{gracz}" in {_wiadomosc1} with "%arg 2%" send "%{_wiadomosc1}%" stop if arg 1 is "usun": if arg 2 is set: if file "plugins/Toolsy/AntyBot/%arg 2%.yml" doesn't exists: set {_wiadomosc2} to "%{wiadomosc.antybotniezwerfyikowany}%" replace all "{gracz}" in {_wiadomosc2} with "%arg 2%" send "%{_wiadomosc2}%" stop else: delete file "plugins/Toolsy/AntyBot/%arg 2%.yml" set {_wiadomosc3} to "%{wiadomosc.antybotremove}%" replace all "{gracz}" in {_wiadomosc3} with "%arg 2%" send "%{_wiadomosc3}%" stop if arg 1 is "sprawdz": if arg 2 is set: if file "plugins/Toolsy/AntyBot/%arg 2%.yml" doesn't exists: set {_wiadomosc4} to "%{wiadomosc.antybotniezwerfyikowany}%" replace all "{gracz}" in {_wiadomosc4} with "%arg 2%" send "%{_wiadomosc4}%" stop else: set {_wiadomosc5} to "%{wiadomosc.antybotsprawdz}%" replace all "{gracz}" in {_wiadomosc5} with "%arg 2%" send "%{_wiadomosc5}%" stop else: set {_wiadomosc6} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc6}%" stop command /repair: permission: wario.tools.repair permission message: &cBrak uprawnien &7(&6wario.tools.repair&7) trigger: if {repair} is true: if player's tool is not air: repair player's tool set {_wiadomosc} to "%{wiadomosc.repair}%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.repairerror}%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc2}%" stop command /propozycja []: trigger: if {propozycja} is true: if arg 1 is not set: send "&6&lToolsy &8» &cWpisz propozycje" send "&6&lToolsy &8» &cPamietaj, mozesz dac tylko jedna. Jesli admin odczyta propozycje bedziesz mogl pisac wiecej." stop if arg 1 is set: if file "plugins/Toolsy/Zgloszenia/%player%.yml" doesn't exists: create file "plugins/Toolsy/Zgloszenia/%player%.yml" set "%player%" to "%argument%" in yaml file "plugins/Toolsy/Zgloszenia/%player%.yml" set {_wiadomosc} to "%{wiadomosc.propozycja}%" replace all "{tresc}" in {_wiadomosc} with "%argument%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.propozycjaerror}%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc2}%" stop command /helpop []: trigger: if {helpop} is true: if arg 1 is not set: send "&6&lToolsy &8» &cNapisz co chcesz zglosic." stop if arg 1 is set: loop all players: if loop-player has permission "wario.tools.helpop": set {_wiadomosc} to "%{wiadomosc.helpop}%" replace all "{tresc}" in {_wiadomosc} with "%argument%" replace all "{nazwa}" in {_wiadomosc} with "%player%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc1}%" stop command /head []: permission: wario.toolsy.head permission message: &cBrak uprawnien &7(&6wario.tools.head&7) trigger: if {head} is true: if arg 1 is not set: give player's skull to player set {_wiadomosc} to "%{wiadomosc.headdone}%" send "%{_wiadomosc}%" set {_wiadomosc1} to "%{wiadomosc.headpropo}%" send "%{_wiadomosc1}%" stop if arg 1 is set: give arg 1's skull to player set {_wiadomosc2} to "%{wiadomosc.headdone1}%" replace all "{gracz}" in {_wiadomosc2} with "%argument%" send "%{_wiadomosc2}%" stop else: set {_wiadomosc1} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc1}%" stop command /komenda [] []: permission: wario.toolsy.komendy permission message: &cBrak uprawnien &7(&6wario.tools.komendy&7) trigger: if arg 1 is not set: send "&6&lToolsy &8» &cPodaj argument!" send "&6&lToolsy &8» &7Dostepne: &6on&7, &6off&7, &6sprawdz&7." send "&6&lToolsy &8» &7Przyklad: &6/komend on/off " stop if arg 1 is "on": if arg 2 is set: if {%arg 2%} is true: set {_wiadomosc} to "%{wiadomosc.on}%" send "%{_wiadomosc}%" stop else: set {%arg 2%} to true set {_wiadomosc1} to "%{wiadomosc.komendaon1}%" replace all "{komenda}" in {_wiadomosc1} with "%arg 2%" send "%{_wiadomosc1}%" stop if arg 1 is "off": if arg 2 is set: if {%arg 2%} is false: set {_wiadomosc2} to "%{wiadomosc.komendaoff1}%" send "%{_wiadomosc2}%" stop else: set {%arg 2%} to false set {_wiadomosc3} to "%{wiadomosc.komendaoff2}%" replace all "{komenda}" in {_wiadomosc3} with "%arg 2%" send "%{_wiadomosc3}%" stop if arg 1 is "sprawdz": if {heal} is true: send "&7Heal: &2wlaczone" else: send "&7Heal: &4wylaczone" if {feed} is true: send "&7Feed: &2wlaczone" else: send "&7Feed: &4wylaczone" if {gamemode} is true: send "&7Gamemode: &2wlaczone" else: send "&7Gamemode: &4wylaczone" if {kick} is true: send "&7Kick: &2wlaczone" else: send "&7Kick: &4wylaczone" if {rename} is true: send "&7Rename: &2wlaczone" else: send "&7Rename: &4wylaczone" if {lore} is true: send "&7Lore: &2wlaczone" else: send "&7Lore: &4wylaczone" if {hat} is true: send "&7Hat: &2wlaczone" else: send "&7Hat: &4wylaczone" if {plugin} is true: send "&7Plugin: &2wlaczone" else: send "&7Plugin: &4wylaczone" if {sethome} is true: send "&7Sethome: &2wlaczone" else: send "&7Sethome: &4wylaczone" if {home} is true: send "&7Home: &2wlaczone" else: send "&7Home: &4wylaczone" if {delhome} is true: send "&7Delhome: &2wlaczone" else: send "&7Delhome: &4wylaczone" if {antybot} is true: send "&7Antybot: &2wlaczone" else: send "&7Antybot: &4wylaczone" if {repair} is true: send "&7Repair: &2wlaczone" else: send "&7Repair: &4wylaczone" if {propozycja} is true: send "&7Propozycja: &2wlaczone" else: send "&7Propozycja: &4wylaczone" if {helpop} is true: send "&7Helpop: &2wlaczone" else: send "&7Helpop: &4wylaczone" if {head} is true: send "&7Head: &2wlaczone" else: send "&7Head: &4wylaczone" if {broadcast} is true: send "&7Broadcast: &2wlaczone" else: send "&7Broadcast: &4wylaczone" if {clear} is true: send "&7Clear: &2wlaczone" else: send "&7Clear: &4wylaczone" if {inventory} is true: send "&7Inventory: &2wlaczone" else: send "&7Inventory: &4wylaczone" if {tps} is true: send "&7Tps: &2wlaczone" else: send "&7Tps: &4wylaczone" if {chat} is true: send "&7Chat: &2wlaczone" else: send "&7Chat: &4wylaczone" if {czas} is true: send "&7Czas: &2wlaczone" else: send "&7Czas: &4wylaczone" if {setspawn} is true: send "&7Setspawn: &2wlaczone" else: send "&7Setspawn: &4wylaczone" if {spawn} is true: send "&7Spawn: &2wlaczone" else: send "&7Spawn: &4wylaczone" command /broadcast []: permission: wario.tools.broadcast permission message: &cBrak uprawnien &7(&6wario.tools.broadcast&7) trigger: if {broadcast} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPoprawne uzycie: &7/broadcast " stop if arg 1 is set: set {_wiadomosc} to "%{wiadomosc.broadcast}%" replace all "{tekst}" in {_wiadomosc} with "%colored arg%" broadcast "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc1}%" stop command /clear []: permission: wario.tools.clear permission message: &cBrak uprawnien &7(&6wario.tools.clear&7) trigger: if {clear} is true: if arg 1 is not set: clear player's inventory set {_wiadomosc} to "%{wiadomosc.clear}%" send "%{_wiadomosc}%" stop if arg 1 is set: if arg 1 is online: clear arg 1's inventory set {_wiadomosc1} to "%{wiadomosc.clearplayer}%" replace all "{gracz}" in {_wiadomosc1} with "%argument%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc2}%" stop else: set {_wiadomosc3} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc3}%" stop command /inventory []: permission: wario.tools.inventory permission message: &cBrak uprawnien &7(&6wario.tools.inventory&7) trigger: if {inventory} is true: if arg 1 is not set: send "&6&lToolsy &8» &cPodaj gracza!" stop if arg 1 is set: if arg 1 is online: open arg 1's inventory for player set {_wiadomosc} to "%{wiadomosc.inventory}%" replace all "{gracz}" in {_wiadomosc} with "%argument%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc2}%" stop command /tps: permission: wario.tools.tps permission message: &cBrak uprawnien &7(&6wario.tools.tps&7) trigger: if {tps} is true: set {_wiadomosc} to "%{wiadomosc.tps}%" replace all "{tps}" in {_wiadomosc} with "%tps%" send "%{_wiadomosc}%" else: set {_wiadomosc1} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc1}%" stop command /chat [] []: permission: wario.tools.chat permission message: &cBrak uprawnien &7(&6wario.tools.chat&7) trigger: if {chat} is true: if arg 1 is not set: send "&8&m----------&6&lToolsy&8&m----------" send "&3/chat on &7- wlacza chat" send "&3/chat off &7- wylacza chat" send "&3/chat clear &7- czysci chat" send "&3/chat clear &7- wyczyszcza chat danemu graczowi" send "&8&m----------&6&lToolsy&8&m----------" stop if arg 1 is "on": if {chaton} is false: set {chaton} to true broadcast "&8&m----------&6&lToolsy&8&m----------" broadcast "" set {_wiadomosc} to "%{wiadomosc.chaton}%" replace all "{gracz}" in {_wiadomosc} with "%player%" broadcast "%{_wiadomosc}%" broadcast "" broadcast "&8&m----------&6&lToolsy&8&m----------" stop else: set {_wiadomosc1} to "%{wiadomosc.chatonerror}%" send "%{_wiadomosc1}%" stop if arg 1 is "off": if {chaton} is true: set {chaton} to false broadcast "&8&m----------&6&lToolsy&8&m----------" broadcast "" set {_wiadomosc2} to "%{wiadomosc.chatoff}%" replace all "{gracz}" in {_wiadomosc2} with "%player%" broadcast "%{_wiadomosc2}%" broadcast "" broadcast "&8&m----------&6&lToolsy&8&m----------" stop else: set {_wiadomosc3} to "%{wiadomosc.chatofferror}%" send "%{_wiadomosc3}%" stop if arg 1 is "clear": if arg 2 is not set: loop 99 times: broadcast "" broadcast "&8&m----------&6&lToolsy&8&m----------" broadcast "" set {_wiadomosc4} to "%{wiadomosc.chat}%" replace all "{gracz}" in {_wiadomosc4} with "%player%" broadcast "%{_wiadomosc4}%" broadcast "" broadcast "&8&m----------&6&lToolsy&8&m----------" stop if arg 1 is "clear": if arg 2 is set: if arg 2 is online: loop 99 times: send "" to arg 2 send "&8&m----------&6&lToolsy&8&m----------" to arg 2 send "" to arg 2 set {_wiadomosc5} to "%{wiadomosc.chatclearplayer}%" replace all "{gracz}" in {_wiadomosc5} with "%player%" send "%{_wiadomosc5}%" to arg 2 send "" to arg 2 send "&8&m----------&6&lToolsy&8&m----------" to arg 2 stop else: set {_wiadomosc6} to "%{wiadomosc.playeroffline}%" send "%{_wiadomosc6}%" stop else: set {_wiadomosc7} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc7}%" stop command /czas []: trigger: if {czas} is true: if arg 1 is not set: set {_wiadomosc} to "%{wiadomosc.czas}%" replace all "{sekundy}" in {_wiadomosc} with "%{czas::sekundy::%player%}%" replace all "{minuty}" in {_wiadomosc} with "%{czas::minuty::%player%}%" replace all "{godziny}" in {_wiadomosc} with "%{czas::godziny::%player%}%" replace all "{dni}" in {_wiadomosc} with "%{czas::dni::%player%}%" send "%{_wiadomosc}%" stop if arg 1 is set: if {czas::czybyl::%arg 1%} is true: set {_wiadomosc1} to "%{wiadomosc.czasplayer}%" replace all "{sekundy}" in {_wiadomosc1} with "%{czas::sekundy::%arg 1%}%" replace all "{minuty}" in {_wiadomosc1} with "%{czas::minuty::%arg 1%}%" replace all "{godziny}" in {_wiadomosc1} with "%{czas::godziny::%arg 1%}%" replace all "{dni}" in {_wiadomosc1} with "%{czas::dni::%arg 1%}%" replace all "{gracz}" in {_wiadomosc1} with "%arg 1%" send "%{_wiadomosc1}%" stop else: set {_wiadomosc2} to "%{wiadomosc.graczniebylo}%" send "%{_wiadomosc2}%" stop else: set {_wiadomosc3} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc3}%" stop command /setspawn: permission: wario.tools.setspawn permission message: &cBrak uprawnien &7(&6wario.tools.setspawn&7) trigger: if {setspawn} is true: set {spawn} to location of player set {_wiadomosc} to "%{wiadomosc.setspawn}%" send "%{_wiadomosc}%" stop else: set {_wiadomosc1} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc1}%" stop command /spawn: trigger: if {spawncommand} is true: set {_x.%player%} to x-location of player set {_z.%player%} to z-location of player set {_y.%player%} to y-location of player loop 5 times: if difference between x-location of player and {_x.%player%} is bigger than 0.5: set {_wiadomosc} to "%{wiadomosc.homeerror}%" send "%{_wiadomosc}%" stop if difference between y-location of player and {_y.%player%} is bigger than 0.5: set {_wiadomosc1} to "%{wiadomosc.homeerror}%" send "%{_wiadomosc1}%" stop if difference between z-location of player and {_z.%player%} is bigger than 0.5: set {_wiadomosc2} to "%{wiadomosc.homeerror}%" send "%{_wiadomosc2}%" stop wait 1 second teleport player to {spawn} set {_wiadomosc3} to "%{wiadomosc.spawntp}%" send "%{_wiadomosc3}%" stop else: set {_wiadomosc4} to "%{wiadomosc.komendaoff}%" send "%{_wiadomosc4}%" stop every second: loop all players: add 1 to {czas::sekundy::%loop-player%} if {czas::sekundy::%loop-player%} is 60: add 1 to {czas::minuty::%loop-player%} set {czas::sekundy::%loop-player%} to 0 if {czas::minuty::%loop-player%} is 60: add 1 to {czas::godziny::%loop-player%} set {czas::minuty::%loop-player%} to 0 if {czas::godziny::%loop-player%} is 24: add 1 to {czas::dni::%loop-player%} set {czas::godziny::%loop-player%} to 0 on connect: if file "plugins/Toolsy/AntyBot/%player%.yml" doesn't exists: create file "plugins/Toolsy/AntyBot/%player%.yml" kick player due to "&6&lToolsy &8» &a&lWejdz ponownie w celu weryfikacji!" set "Data weryfikacji:" to "%now%" in yaml file "plugins/Toolsy/AntyBot/%player%.yml" else: stop on first join: set {czas::czybyl::%player%} to true set {czas::sekundy::%player%} to 0 set {czas::minuty::%player%} to 0 set {czas::godziny::%player%} to 0 set {czas::dni::%player%} to 0 stop on join: set the join message to "" set {_wiadomosc} to "%{wiadomosc.join}%" replace all "{gracz}" in {_wiadomosc} with "%player%" broadcast "%{_wiadomosc}%" stop on quit: set the quit message to "" set {_wiadomosc} to "%{wiadomosc.quit}%" replace all "{gracz}" in {_wiadomosc} with "%player%" broadcast "%{_wiadomosc}%" stop