on script load: if folder "plugins/Faworka" doesn't exists: create folder "plugins/Faworka" if folder "plugins/Faworka/gracze" doesn't exists: create folder "plugins/Faworka/gracze" if folder "plugins/Faworka/gracze" doesn't exists: create folder "plugins/Faworka/gracze" options: tag: &9[&fMENU&9] command /balskrypt [] []: trigger: if player has permission "balskrypt.peccco": if arg 1 is set: if arg 2 is not set: wait 2 tick open chest with 3 rows named {tag} &aDodasz %arg 2% graczowi %arg 1% to player wait 3 ticks format slot 0 of player with 1 of player head named "&3Gracz: &c%arg 1%" with lore "&aDodasz &emu %arg 3%&6$" to be unstealable format slot 1 of player with 1 of lime stained glass pane named "&c*" to bo unstealable format slot 2 of player with 1 of golden ingot named "&eDodaj %arg 3%$ do konta gracza &C%arg 1%&e!" with lore "&a&lDodasz mu do konta %arg 2% kasy!" to run [execute player commnand dodajkase %arg 1% %arg 2%] format slot 3 of player with 1 of redstone named "&cZabierz %arg 2%$ graczowi &a%arg 1%&e!" with lore "&4&lZabierzesz mu %arg 2% kasy!" to run [execute player command usunkase %arg 1% %arg 2%] format slot 4 of player with 1 of lime stained glass pane named "&c*" to bo unstealable format slot 5 of player with 1 of lime stained glass pane named "&c*" to bo unstealable format slot 6 of player with 1 of lime stained glass pane named "&c*" to bo unstealable format slot 7 of player with 1 of lime stained glass pane named "&c*" to bo unstealable format slot 8 of player with 1 of lime stained glass pane named "&c*" to bo unstealable else: send "{@tag} &cPodaj gracza" to player else: send "&4Nie masz pozwolenia do tej komendy!" to player play raw sound "random.pop" at player with pitch 1 volume 5 command /dodajkase [] []: trigger: if player has permission "dodajkase.peccco": if arg 1 is set: if arg 2 is not set: wait 2 tick add %arg 2% to %arg 1%'s balance send "&aWyslales %arg 2%$ graczowi %arg 1%!" create file "plugins/Faworka/gracze/%arg 1%.yml%" else: send "{@tag} &cPodaj gracza" to player else: send "&4Nie masz pozwolenia do tej komendy!" to player play raw sound "random.pop" at player with pitch 1 volume 5 command /usunkase [] []: trigger: if player has permission "usunkase.peccco": if arg 1 is set: if arg 2 is not set: wait 2 tick remove %arg 2% from %arg 1%'s balance send "&cOdebrales %arg 2%$ graczowi %arg 1%!" create file "plugins/Faworka/gracze/%arg 1%.yml%" else: send "{@tag} &cPodaj gracza" to player else: send "&4Nie masz pozwolenia do tej komendy!" to player play raw sound "random.pop" at player with pitch 1 volume 5