I found my old script for INVSEE, but after many attempts, I don't know what's wrong with it. Is anyone able to help me fix it? Code below.
command /inspect [<player>]:
executable by: players
permission: inspect.players
permission message: &4Nie posiadasz dostępu do tej komendy.
trigger:
if arg 1 is not set:
send "&cUżycie: &6/inspect <gracz>" to player
stop
set {inspectingPlayers::%player%} to true
open chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%&e:" to player
set {_num} to 0
loop 36 times:
if {_num} is between 0 and 8:
set slot ({_num} + 27) of player's current inventory to slot {_num} of arg-1's inventory
if {_num} is between 9 and 35:
set slot ({_num} - 9) of player's current inventory to slot {_num} of arg-1's inventory
add 1 to {_num}
set slot (integers between 36 and 44) of player's current inventory to black stained glass pane named " "
if arg-1's cursor slot is not air:
set slot 47 of player's current inventory to arg-1's cursor slot
else:
set slot 47 of player's current inventory to white stained glass pane named "&aSlot kursora"
if arg-1's helmet is not air:
set slot 48 of player's current inventory to arg-1's helmet
else:
set slot 48 of player's current inventory to white stained glass pane named "&aHelm"
if arg-1's chestplate is not air:
set slot 50 of player's current inventory to arg-1's chestplate
else:
set slot 50 of player's current inventory to white stained glass pane named "&aNapiersnik"
if arg-1's leggings is not air:
set slot 51 of player's current inventory to arg-1's leggings
else:
set slot 51 of player's current inventory to white stained glass pane named "&aNogawice"
if arg-1's boots is not air:
set slot 52 of player's current inventory to arg-1's boots
else:
set slot 52 of player's current inventory to white stained glass pane named "&aButy"
set {_h} to arg-1's health
set {_hp} to ({_h} * 10)
set {_f} to arg-1's food level
set {_fp} to ({_f} * 10)
set {_l} to arg-1's level
set {_loc} to arg-1's location formatted as string
set {_w} to arg-1's world
set slot 53 of player's current inventory to book named "&eGracz &b%arg 1%:" with lore " &aZycie: &c%{_h}% (%{_hp}%%%) ", " &aGlod: &c%{_f}% (%{_fp}%%%) ", " &aPoziom: &c%{_l}% ", " &aPozycja: &c%{_loc}% (%{_w}%) " and "&aEfekty: &c%potion effects of arg-1 ? ""&cBrak""%"
on inventory click:
clicked inventory is not player's inventory
{inspectingPlayers::%player%} is set
cancel event
on inventory close:
{inspectingPlayers::%player%} is set
clear {inspectingPlayers::%player%}