on inventory click:
if inventory name of current inventory of player contains "&7Uprawnienia dla:":
if "%event.getClickedInventory().getType()%" is "PLAYER":
stop
cancel event
set {_name} to uncolored inventory name of current inventory of player
replace all "Uprawnienia dla: " with "" in {_name}
if player's current inventory's slot slot is cobblestone:
execute player command "/blokiupr %{_name}%"
if player's current inventory's slot slot is diamond pickaxe:
execute player command "/blokiupr1 %{_name}%"
if player's current inventory's slot slot is beacon:
execute player command "/blokiupr2 %{_name}%"
if player's current inventory's slot slot is obsidian:
execute player command "/blokiupr3 %{_name}%"
if player's current inventory's slot slot is chest:
execute player command "/blokiupr4 %{_name}%"
if player's current inventory's slot slot is tnt:
execute player command "/blokiupr5 %{_name}%"
if player's current inventory's slot slot is lava bucket:
execute player command "/blokiupr6 %{_name}%"
i mam serwer na wersji 1.16.1 i wyskakuję błąd w tym miejscu
Pytanie
Krzysiekkk 0
Kawałek skryptu:
on inventory click: if inventory name of current inventory of player contains "&7Uprawnienia dla:": if "%event.getClickedInventory().getType()%" is "PLAYER": stop cancel event set {_name} to uncolored inventory name of current inventory of player replace all "Uprawnienia dla: " with "" in {_name} if player's current inventory's slot slot is cobblestone: execute player command "/blokiupr %{_name}%" if player's current inventory's slot slot is diamond pickaxe: execute player command "/blokiupr1 %{_name}%" if player's current inventory's slot slot is beacon: execute player command "/blokiupr2 %{_name}%" if player's current inventory's slot slot is obsidian: execute player command "/blokiupr3 %{_name}%" if player's current inventory's slot slot is chest: execute player command "/blokiupr4 %{_name}%" if player's current inventory's slot slot is tnt: execute player command "/blokiupr5 %{_name}%" if player's current inventory's slot slot is lava bucket: execute player command "/blokiupr6 %{_name}%"i mam serwer na wersji 1.16.1 i wyskakuję błąd w tym miejscu
Edytowane przez wiktorm12Ustawiam w code
Notatka dodana przez wiktorm12
Odnośnik do komentarza
https://skript.pl/temat/43853-b%C5%82%C4%85d/Udostępnij na innych stronach
6 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.