permission: sk.punish
permission message: &cYou are not a staff member
trigger:
set {punish} to a new chest inventory with 4 rows named "&eOnline Players &8•%number of all players%"
set {_loop} to 0
loop all players:
set {pp::%player's uuid%} to "%loop-player%" parsed as player
set slot {_loop} of {punish} to skull of {pp::%player's uuid%} named "&e&lUSER &f%{pp::%player's uuid%}%" with lore "&e⬤&7 ʀᴀɴᴋ: &b%{pp::%player's uuid%}'s prefix%" and "&e⬤ &7ʙᴀʟᴀɴᴄᴇ&7: &b%{pp::%player's uuid%}'s balance%" and "&e⬤&7 ᴡᴏʀʟᴅ: &b%{pp::%player's uuid%}'s world%"
set slot 27 of {punish} to skull of player named "&e&lUSER &f%player%" with lore "&e⬤&7 ʀᴀɴᴋ: &b%player's prefix%" and "&e⬤ &7ʙᴀʟᴀɴᴄᴇ&7: &b%player's balance%" and "&e⬤&7 ᴡᴏʀʟᴅ: &b%player's world%"
set slot 28,29,30,31,32,33,34 of {punish} to gray stained glass pane named "&7"
set slot 35 of {punish} to arrow named "&cClose Gui"
add 1 to {_loop}
open {punish} to player
on inventory click:
if event-inventory's display name is "&eOnline Players &8•%number of all players%":
cancel event
if event-item is skull of {pp::%player's uuid%} named "&e&lUSER &f%{pp::%player's uuid%}%":
make player execute command "list %{pp::%player's uuid%}%"
if event-item is arrow named "&cClose Gui":
close player's inventory
#Help
1 messages · Page 1 of 1 (latest)
ill tell the erro
r
when i do /punish
and click on a item
it shall execute a command
but it only executes on 1 skull in the gui like if there is 2 players on there should be 2 players head in the gui and there is but when i click 1 on 1 of the players head only 1 of the them will work and the other wont work
check dms
anyone knows what the errror is
Here, you can use one of my old ass skripts as an example
trigger:
create a gui with virtual chest inventory with 3 rows named "&4&lBoss Menu":
make gui slot (integers between 8 and 9) and (integers between 17 and 26) to gray stained glass pane named ""
make gui slot 10, 11, 12, 14, 15, 16 to gray stained glass pane named ""
make gui slot 0 to "yellow glazed terracotta" parsed as item named "&e&lPurity" with lore " ", "&7Click to fight &e&lPurity", "&cRequires &ePurity Key":
make player execute command "/md play purity"
play sound "entity.experience_orb.pickup" to player
close player's inventory
make gui slot 2 to "purple glazed terracotta" parsed as item named "&5&lShade" with lore " ", "&7Click to fight &5&lShade", "&cRequires &5Shade Key":
make player execute command "/md play shade"
play sound "entity.experience_orb.pickup" to player
close player's inventory```
have you debugged?