k
[doublepost=1614766707,1614766090][/doublepost]command /punish <player>:
trigger:
set metadata tag "BanInvMeta01" of player to chest inventory with 1 row named "&8Punish"
set slot 4 of metadata tag "BanInvMeta01" of player to arg 1's head named "%arg-1%" with lore "&c&lPick their punishment"
open (metadata tag "BanInvMeta01" of player) to player
send "&6Pick who u wanna &c&lPunish!" to player
set {argument.var} to arg 1
on inventory click:
event-inventory = (metadata tag "BanInvMeta01" of player):
index of event-slot = 4:
cancel event
set metadata tag "BanInv2Meta01" of player to chest inventory with 3 row named "&8Pick the punishment"
set slot 13 of metadata tag "BanInv2Meta01" of player to {argument.var.%player%}'s head named "%{argument.var.%player%}%" with lore "Test"
open (metadata tag "BanInv2Meta01" of player) to player
Code:
command /punish <player>:
trigger:
set metadata tag "BanInvMeta01" of player to chest inventory with 1 row named "&8Punish"
set slot 4 of metadata tag "BanInvMeta01" of player to arg 1's head named "%arg-1%" with lore "&c&lPick their punishment"
open (metadata tag "BanInvMeta01" of player) to player
send "&6Pick who u wanna &c&lPunish!" to player
set {argument.var} to arg 1
on inventory click:
event-inventory = (metadata tag "BanInvMeta01" of player):
index of event-slot = 4:
cancel event
set metadata tag "BanInv2Meta01" of player to chest inventory with 3 row named "&8Pick the punishment"
set slot 13 of metadata tag "BanInv2Meta01" of player to {argument.var.%player%}'s head named "%{argument.var.%player%}%" with lore "Test"
open (metadata tag "BanInv2Meta01" of player) to player
it doesnt give a message but it wont appear
[doublepost=1614821334][/doublepost]dont mind it not being a .%player% i fixed it but it still doesnt work
[doublepost=1614821509][/doublepost]alright. alright. u dont need to reply i fixed some simple errors and it worked.