Filled WorldGuard Chest Access

Discussion in 'Plugin Requests' started by AlwaysAllstar, Feb 21, 2020.

  1. Offline

    AlwaysAllstar

    Plugin category: Addon

    Minecraft version: 1.14

    Suggested name: WGChestAccess

    What I want: I apologize for making this request because I thought this was possible with WorldGuard, but I've tried nearly everything and it doesn't do what I want. I reached out to support in Discord and they pretty much just gave up on me. This would just make my life so much easier.

    Right now in my WorldGuard regions, if chest access is set to deny, no one can use chests. If it's set to allow, everyone can use chests. I need so if a player is the owner or a member of the region they can access chests, but no one else can. It would be great if I could do the same with doors, trapdoors, levers, etc. What I have in mind is simply a plugin that adds a flag option to WorldGuard regions called OverrideUses or something, it doesn't really matter. If this is set to true, it overrides WorldGuard's chest access, use, and interact flag and makes it all so owners and members can use chests, levers, doors, trap doors, etc. but no one else can. If it is set to false, it does nothing and WorldGuard just works as usual (Basically disables the plugin).

    This may help:
    Make a flag called OverrideUses that when true:
    Sets use flag to allow for members/owner only
    Sets interact flag to allow for members/owner only
    Sets chest access flag to allow for members/owner only
    When false:
    Disabled and WorldGuard acts as normal

    Again I apologize if this is a stupid request, I just don't know what to do at this point and this would make configuring my regions so much easier.

    Ideas for commands: No commands needed.

    Ideas for permissions: No permissions needed.

    When I'd like it by: As soon as possible. :)
     
    Xp10d3 likes this.
  2. Offline

    AlwaysAllstar

  3. Offline

    ironinventor1

    @AlwaysAllstar You probably could use region groups to allow certain sets of people to do this. From what it sounds like you just want people assigned to a region to be able to bypass chest protection and open chests in which case a look through worldguards wiki turned this up. https://worldguard.enginehub.org/en/latest/regions/flags/ looks like its already built in to world guard (region groups)
     
  4. Offline

    AlwaysAllstar

    Hi, I got it to work. It's not exactly what I was going for but it does mostly what I need. Thank you so much! I at first tried only allowing members to access chests which didn't work. I found that denying nonmembers access to chests did work though. Everyone is allowed use and interact permissions which isn't what I originally had in mind but it doesn't matter too much for my needs. Thank you again. :)
     
  5. Offline

    ironinventor1

Share This Page