Solved Multiverse/portals, need to remove items when traveling between worlds

Discussion in 'Bukkit Help' started by marsrover, Oct 26, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    marsrover

    Ok, so I have a place called world2, it is in survival mode and links to 2 portals.
    First portal takes you to another survival map (an island)
    Second portal takes you to world (a creative flat map)
    The problem is if you go to the creative world, load up on blocks, and come back to the survival world (where all the fun is) you keep your blocks you just took.
    I need a way to remove all blocks from your inventory as you travel from world (creative) to world2 (survival) Or make the creative world only available to VIP and admin members.

    I have multiverse, multiverse portals, permissions (http://dev.bukkit.org/server-mods/permbukkit/)
    And my current permissions file is something like this.

    Code:
    #a bunch of intro stuff I deleted here to save space (just for this post)
    users:
      marsrover:
        groups:
        - admin
      player:
        groups:
        - default
      cora:
        groups:
        - builder
    groups:
      default:
        default: true
        info:
          build: false
        permissions:
          permissions.build: false
    # command that allows all portals to be used, as a guest you can't build anywhere, so I'm fine with guests exploring 'world' since they can't build/destroy anything.
      admin:
        permissions:
          permissions.*: true
    # command that allows all portals to be used
      builder:
        permissions:
          permissions.build: true
    # insert some command that allows all portals except greentoworld to be used (this rank is used for regular members)
      VIP:
        permissions:
          permissions.build: true
    # insert some command here that allows all portals to be used (rank for regular members I trust not to abuse the block bug of jumping between worlds)
    messages:
      build: You do not have permission to build here.
    debug: false
    
    Side note here, I gave up on trying to get the permissions for builder and admin to be the only ones to be able to use portals so I ran '/mv conf enforceaccess false' and
    '/mvp conf enforceportalaccess false' to make a quick patch to get people moving from world to world

    Permissions were giving me a headache.

    Can someone get only VIP and admins to access the creative world. Everyone else can only use world2 and world4.

    Sorry for the long post, I kinda changed my mind on what I wanted to do mid way through typing this so I had to re-write bits.

    As for getting the player ranks to show up in chat... that's going to have to be another thread, another day.

    UPDATE: worked it out the second way, allow default group to go anywhere but do nothing
    builder can go anywhere but the creative map
    VIP can go anywhere
    Admin can go anywhere
    Here's my config file if any other person stumbles on this. One thing left to do, get the chat to display what rank you are. Most likely with a prefix command.

    Code:
    # PermissionsBukkit configuration file
    users:
      marsrover:
        groups:
        - admin
      player:
        groups:
        - default
      cora:
        groups:
        - builder
    groups:
      default:
        default: true
        permissions:
          permissions.build: false
          lwc.deny: true
          multiverse.portal.access.*: true
          multiverse.access.*: true
      admin:
        permissions:
          permissions.*: true
          lwc.admin: true
          multiverse.portal.access.*: true
          multiverse.access.*: true
      builder:
        permissions:
          permissions.build: true
          lwc.protect: true
          multiverse.portal.access.redtoworld4: true
          multiverse.portal.access.bluetospawn2: true
          multiverse.portal.access.greentoworld: false
          multiverse.access.*: true
          multiverse.portal.debug: true
      VIP:
        permissions:
          permissions.build: true
          lwc.mod: true
          lwc.protect: true
          multiverse.portal.access.*: true
          multiverse.access.*: true
          multiverse.portal.debug: true
    messages:
      build: You do not have permission to build here.
    debug: false
    
    note, add portal.debug if you can't figure out what is going on. :)
    sorry for taking up space. I'll close this thread once I get the chat prefixes working.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  2. Offline

    lokpique

    Sounds like you need some multiverse-inventories. It's a great addon for handling world inventories, and can even group worlds together.

    I use it on my server to keep the 3 "original" maps sharing the same inventory... things like my redstone map has it's own, as well as my survival only map.
     
  3. Offline

    marsrover

    I did not even know about that plugin. Cool.
    However, I just got everything sorted out about what ranks can go where. I kinda want to keep it this way. (don't fix what ain't broken)

    Chat is fixed, follow tutorials around the web, learn the code, be the code.

    Closing thread.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
Thread Status:
Not open for further replies.

Share This Page