command /openshop:
#No perms
trigger:
open chest with 3 rows named "&8Shop" to player
format slot 12 of player with grass named "&2Blocks" to close
on right click with chest
open chest with 1 rows named "&2Blocks" to player
format slot 1 of player with dirt named "&2Dirt" to close then run [execute player command "give %player% dirt"]
I'm having a lot of trouble with this. I'm trying to make a shop plugin but I'm new so I want to learn. Can someone please check it out and fix it. That would be greatly appreciated. <3
#No perms
trigger:
open chest with 3 rows named "&8Shop" to player
format slot 12 of player with grass named "&2Blocks" to close
on right click with chest
open chest with 1 rows named "&2Blocks" to player
format slot 1 of player with dirt named "&2Dirt" to close then run [execute player command "give %player% dirt"]
I'm having a lot of trouble with this. I'm trying to make a shop plugin but I'm new so I want to learn. Can someone please check it out and fix it. That would be greatly appreciated. <3