When i try to click on the Player's Head nothing happens. I need help with the Player Selector
command /test:
permission: test.use
permission message: &cNo permissions
trigger:
set {_gui} to a new chest inventory with 3 row with name "&bTest"
set slot 13 of {_gui} to lime terracotta named "&aCreate"
open {_gui} to player
on inventory click:
if name of event-inventory is "&bTest":
if index of event-slot = 13:
cancel event
make player execute command "test2"
command /test2:
trigger:
set {_y} to -1
set {_x} to a new chest inventory with 4 row with name "Gui Test"
loop all players:
add 1 to {_y}
set slot {_y} of {_x} to loop-player's skull
open {_x} to player
on inventory click:
if name of event-inventory is "Gui Test":
if index of event-slot = {_y}:
cancel event
send "Test"
command /test:
permission: test.use
permission message: &cNo permissions
trigger:
set {_gui} to a new chest inventory with 3 row with name "&bTest"
set slot 13 of {_gui} to lime terracotta named "&aCreate"
open {_gui} to player
on inventory click:
if name of event-inventory is "&bTest":
if index of event-slot = 13:
cancel event
make player execute command "test2"
command /test2:
trigger:
set {_y} to -1
set {_x} to a new chest inventory with 4 row with name "Gui Test"
loop all players:
add 1 to {_y}
set slot {_y} of {_x} to loop-player's skull
open {_x} to player
on inventory click:
if name of event-inventory is "Gui Test":
if index of event-slot = {_y}:
cancel event
send "Test"