_U4R1A_ Posted March 5, 2021 Share Posted March 5, 2021 (edited) command /shop: trigger: open chest with 3 rows named "&4&lShop" to player format gui slot 0 of player with gray stained glass pane named " " format gui slot 1 of player with gray stained glass pane named " " format gui slot 2 of player with gray stained glass pane named " " format gui slot 3 of player with gray stained glass pane named " " format gui slot 4 of player with gray stained glass pane named " " format gui slot 5 of player with gray stained glass pane named " " format gui slot 6 of player with gray stained glass pane named " " format gui slot 7 of player with gray stained glass pane named " " format gui slot 8 of player with gray stained glass pane named " " format gui slot 9 of player with gray stained glass pane named " " format gui slot 17 of player with gray stained glass pane named " " format gui slot 18 of player with gray stained glass pane named " " format gui slot 19 of player with gray stained glass pane named " " format gui slot 20 of player with gray stained glass pane named " " format gui slot 21 of player with gray stained glass pane named " " format gui slot 22 of player with gray stained glass pane named " " format gui slot 23 of player with gray stained glass pane named " " format gui slot 24 of player with gray stained glass pane named " " format gui slot 25 of player with gray stained glass pane named " " format gui slot 26 of player with gray stained glass pane named " " Format slot 13 of player with spawner named "&9&lGen Shop" with lore "&3The shop where you buy gens (duh)" to run [ execute player command "/genshop"] command /genshop: trigger: open chest with 3 rows named "&9&lGen Shop" to player format gui slot 0 of player with coal block named "&8&lCoal Gen" with lore "&eBuy:&6 1000 &eSell:&6 100" when players run /shop they have the ability to move around the glass panes named " " and they can move the coal gen how can I disable that? Edited March 5, 2021 by _U4R1A_ Link to comment Share on other sites More sharing options...
_U4R1A_ Posted March 5, 2021 Author Share Posted March 5, 2021 28 minutes ago, _U4R1A_ said: command /shop: trigger: open chest with 3 rows named "&4&lShop" to player format gui slot 0 of player with gray stained glass pane named " " format gui slot 1 of player with gray stained glass pane named " " format gui slot 2 of player with gray stained glass pane named " " format gui slot 3 of player with gray stained glass pane named " " format gui slot 4 of player with gray stained glass pane named " " format gui slot 5 of player with gray stained glass pane named " " format gui slot 6 of player with gray stained glass pane named " " format gui slot 7 of player with gray stained glass pane named " " format gui slot 8 of player with gray stained glass pane named " " format gui slot 9 of player with gray stained glass pane named " " format gui slot 17 of player with gray stained glass pane named " " format gui slot 18 of player with gray stained glass pane named " " format gui slot 19 of player with gray stained glass pane named " " format gui slot 20 of player with gray stained glass pane named " " format gui slot 21 of player with gray stained glass pane named " " format gui slot 22 of player with gray stained glass pane named " " format gui slot 23 of player with gray stained glass pane named " " format gui slot 24 of player with gray stained glass pane named " " format gui slot 25 of player with gray stained glass pane named " " format gui slot 26 of player with gray stained glass pane named " " Format slot 13 of player with spawner named "&9&lGen Shop" with lore "&3The shop where you buy gens (duh)" to run [ execute player command "/genshop"] command /genshop: trigger: open chest with 3 rows named "&9&lGen Shop" to player format gui slot 0 of player with coal block named "&8&lCoal Gen" with lore "&eBuy:&6 1000 &eSell:&6 100" when players run /shop they have the ability to move around the glass panes named " " and they can move the coal gen how can I disable that? Solved it myself, just add a on inventory click: if event-item is gray stained glass pane named " ": cancel event Link to comment Share on other sites More sharing options...
BanditEagle Posted March 15, 2021 Share Posted March 15, 2021 On 3/5/2021 at 5:48 PM, _U4R1A_ said: Solved it myself, just add a on inventory click: if event-item is gray stained glass pane named " ": cancel event Although this is a good way to do it, there is an alternative method of doing this. From what I see, you are using SkQuery for the code. With SkQuery you can use "to be unstealable" to achieve this. format gui slot 0 of player with gray stained glass pane named " " to be unstealable If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
Thegamerzod Posted March 15, 2021 Share Posted March 15, 2021 or you could `open virtual chest inventory` if your using tuske guis Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now