command /gui [<player>]:
trigger:
set {_gui} to a new chest inventory with 1 row with name "Testowe_gui"
set slot 4 of {_gui} to stone
open {_gui} to %arg 1%
on inventory click:
if name of event-inventory is "Testowe_gui":
if index of event-slot = 4:
cancel event
send "Testowy komunikat"
używam pluginu Skript (wersja 2.3.2)
server jest na 1.17.1
Silnik serwera to spigot
Błąd wyskakuje w linice 5 pisze, że nie rozumie kontekstu/efektu.
Pytanie
Ytes 3
Używałem tabu nie spacji, tu nie mg dać.
Skrypt:
command /gui [<player>]: trigger: set {_gui} to a new chest inventory with 1 row with name "Testowe_gui" set slot 4 of {_gui} to stone open {_gui} to %arg 1% on inventory click: if name of event-inventory is "Testowe_gui": if index of event-slot = 4: cancel event send "Testowy komunikat"używam pluginu Skript (wersja 2.3.2)
server jest na 1.17.1
Silnik serwera to spigot
Błąd wyskakuje w linice 5 pisze, że nie rozumie kontekstu/efektu.
Naprawiam formatowanie i wstawiam kod.
Notatka dodana przez Notro
Odnośnik do komentarza
https://skript.pl/temat/51706-nie-jak-to-naprawi%C4%87-nie-umiem-ustawi%C4%87-komendy-do-danego-gracza/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi