mfnalex / InvUnload

Spigot plugin that automatically puts your stuff into the right chests
GNU General Public License v3.0
6 stars 8 forks source link

[REQUEST] WorldGuard flag for last item on slot #61

Open hmlendea opened 7 months ago

hmlendea commented 7 months ago

Hello.

Would you consider adding a WorldGuard flag for not allowing players to take the last item in a slot in containers? If it's at all possible, of course.

This way, when someone takes items from a chest/barrel/etc, the /unload command will continue to work on these containers just fine.

Here's a scenario:

With the flag I'm proposing, when a player takes a stack from a container, it will actually put one item from the stack back (e.g. effectively taking 63 instead of 64 items).

If one item will remain on all slots then the original layout of the items will be perserved and it will keep /unload working on these containers even after they are emptied. Currently in my city I've asked each player to manually leave an item in the containers in the warehouse, and it's fine, but it's tedious and sometimes we forget to do it. Using a WG flag for the warehouse to do this by default would be so good.