# Skrypt by AdiS # wersja: 1.2 options: nazwa: "&bNaprawa przedmiotu" przedmiot: nether star lore1: "&aTen przedmiot umożliwia naprawę narzędzia" lore2: "&cjest jednokrotnego użytku" command /napraw: executable by: players trigger: if player don't have {@przedmiot} named {@nazwa} with lore {@lore1} and {@lore2}: send "&cNie masz przedmiotu do naprawy!" stop if player's tool is air: send "&cMusisz trzymać przedmiot w ręce!" stop repair player's tool send "&aNaprawiłeś przedmiot w twojej ręce!" to player remove {@przedmiot} named {@nazwa} with lore {@lore1} and {@lore2} from player's inventory command /dajnaprawke []: permission: adis.napraw permission message: &cNie masz dostepu do tej komendy trigger: if arg 1 is not set: send "&cPoprawne użycie &a/dajnaprawke (gracz)" stop give {@przedmiot} named {@nazwa} with lore {@lore1} and {@lore2} to arg-1 send "&aDałeś naprawke graczowi &b%arg-1%&a!" to player send "&bOtrzymałeś naprawkę!" to arg-1