BeansGalaxy / Beans-Backpacks-2

1.20 inventory management mod. Designed to solve inventory clutter and transferring items while belonging in vanilla Minecraft's aesthetic.
MIT License
21 stars 1 forks source link

Gamerule to stop players from opening other player's backpacks #112

Closed macuguita closed 3 months ago

macuguita commented 3 months ago

People can steal stuff from your backpack and it is specially frustrating in servers because there’s no way to check who stole someone’s items from a backpack, so I think it would be a good idea to add a config or a game rule to disable other players opening your backpack and stealing from it

BeansGalaxy commented 3 months ago

Good idea! I'll likely add the options to stop players from opening your backpack when your offline and opening your backpack all together.

I don't think I'll disable them from taking items off your back since I like the idea of pick-pocketing + the menu will close if you turn around to face them or if you move about a block away from where you were when they opened it.

BeansGalaxy commented 3 months ago

You can now enable locking backpacks if you're not the owner by using /beansmod gamerule lockBackpackNotOwner or use lockBackpackOffline if you just want to protect your backpack while offline.