Skip to content

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

@hmlendea

Description

@hmlendea

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:

  • I make a chest dedicated to oak wood products
  • I fill each slot with various oak wood blocks but only one item per slot
  • When I run /unload it will fill these slots, and will do so in the way I originally arranged them in the container
  • Another player comes and takes some wood, emptying some slots (or perhaps all of them)
  • I come back and run /unload again and it's all messed up

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions