Disable certain command(s) and only allow them inside a region?

Discussion in 'Bukkit Help' started by DaNksta, Jan 28, 2012.

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

    DaNksta

    I'm assuming this is possible with worldguard/ worldedit... however I can't figure out how to do it.
    What I want is players not able to use the /drunk command unless they are in certain worldguard regions with the allowed-cmds flag allowing '/drunk'

    I thought about putting this in the worlds config.yml for worldguard.

    Code:
    flags:
          blocked-cmds: [/drunk]
    Figured i better just ask and hope someone can help me!

    Thanks!
     
  2. Offline

    TnT

    try without the / in front of /drunk

    Code:
    flags:
          blocked-cmds: [drunk]
    
     
  3. Offline

    DaNksta

    I don't think you understand- that was a wild guess at how to do it.. tthus, it is likely NOT the correct way. Plus, I highly doubt it would work even if I understood the world config files
     
  4. Offline

    zipfe

    The syntax with the / is actually correct in the OP.

    What you want is block /drunk in a large parent region, or __global__, and not have it blocked in a smaller region. For this to work you'll have to make the small region a child of the big one, and then NOT block the command in that small region.

    Do not use allowed-cmds, this works as a whitelist, i.e., allowed-cmds: [/drunk] would block all commands and only allow /drunk.
     
  5. Offline

    vavraCZe

    ./region flag region_name blocked-cmds /command
     
  6. Offline

    KingZeebrak

    /region flag (Your region Id) blocked-cmds (/Command; e.g /drunk)
     
  7. Offline

    CamNewton786

    Does anyone know how to allow EVERY command , I did /region flag spawn allowed-cmds * and '*' but nothing. Pls help
     
  8. Offline

    treyofsay

    Every command is allowed by default
     
Thread Status:
Not open for further replies.

Share This Page