WorldGuard Region Issue with Priority

Discussion in 'WorldGuard' started by Cristian Marzana, Aug 10, 2017.

  1. Cristian Marzana

    Cristian Marzana New Member

    Hey so i have this huge issue with setting a priority with my regions. so i want the players to be able to do /vanish or /v at spawn and at crates but not allowed them anywhere else besides those regions. so i set blocked-cmds to __global__ and now whenever i go to spawn it wont let me do /v or /vanish. So i set the priority to spawn & crates to 5 and __global__ to 0 but still doesnt work. How can i fix this?



    #
    # WorldGuard regions file
    #
    # WARNING: THIS FILE IS AUTOMATICALLY GENERATED. If you modify this file by
    # hand, be aware that A SINGLE MISTYPED CHARACTER CAN CORRUPT THE FILE. If
    # WorldGuard is unable to parse the file, your regions will FAIL TO LOAD and
    # the contents of this file will reset. Please use a YAML validator such as
    # http://yaml-online-parser.appspot.com (for smaller files).
    #
    # REMEMBER TO KEEP PERIODICAL BACKUPS.
    #
    regions:
    spawn:
    members: {}
    flags: {other-explosion: deny, use: allow, leaf-decay: deny, enderman-grief: deny,
    pvp: deny, mob-spawning: deny, enderpearl: deny, fly: allow, creeper-explosion: deny,
    build: deny, fall-damage: deny, mob-damage: deny, tnt: deny, ghast-fireball: deny}
    owners: {}
    type: poly2d
    priority: 4
    max-y: 255
    min-y: 0
    points:
    - {x: -78, z: 10}
    - {x: -78, z: 11}
    - {x: -79, z: 11}
    - {x: -79, z: 12}
    - {x: -80, z: 12}
    - {x: -80, z: 13}
    - {x: -81, z: 13}
    - {x: -81, z: 107}
    - {x: -80, z: 107}
    - {x: -80, z: 108}
    - {x: -79, z: 108}
    - {x: -79, z: 109}
    - {x: -78, z: 109}
    - {x: -78, z: 110}
    - {x: 16, z: 110}
    - {x: 16, z: 109}
    - {x: 17, z: 109}
    - {x: 17, z: 108}
    - {x: 18, z: 108}
    - {x: 18, z: 107}
    - {x: 19, z: 107}
    - {x: 19, z: 13}
    - {x: 18, z: 13}
    - {x: 18, z: 12}
    - {x: 17, z: 12}
    - {x: 17, z: 11}
    - {x: 16, z: 11}
    - {x: 16, z: 10}
    - {x: -78, z: 10}
    crates:
    min: {x: -53.0, y: 30.0, z: -1.0}
    max: {x: -9.0, y: 62.0, z: 42.0}
    members: {}
    flags: {other-explosion: deny, use: allow, leaf-decay: deny, enderman-grief: deny,
    pvp: deny, mob-spawning: deny, enderpearl: deny, fly: allow, creeper-explosion: deny,
    build: deny, fall-damage: deny, mob-damage: deny, tnt: deny, ghast-fireball: deny}
    owners: {}
    type: cuboid
    priority: 4
    raidevent:
    min: {x: 2203.0, y: 80.0, z: 2968.0}
    max: {x: 2207.0, y: 83.0, z: 2972.0}
    members: {}
    flags: {build: deny, tnt: deny, pvp: deny}
    owners: {}
    type: cuboid
    priority: 0
    dp:
    min: {x: -86.0, y: 44.0, z: 91.0}
    max: {x: -60.0, y: 67.0, z: 117.0}
    members: {}
    flags: {fly: deny}
    owners: {}
    type: cuboid
    priority: 4
    warzone:
    min: {x: -400.0, y: 0.0, z: -320.0}
    max: {x: 351.0, y: 255.0, z: 431.0}
    members: {}
    flags: {other-explosion: deny, use: allow, leaf-decay: deny, enderman-grief: deny,
    chest-access: allow, pvp: allow, mob-spawning: deny, enderpearl: allow,
    fly: deny, creeper-explosion: deny, build: deny, fall-damage: deny, mob-damage: deny,
    tnt: deny, ghast-fireball: deny}
    owners: {}
    type: cuboid
    priority: 2
    __global__:
    members: {}
    flags:
    time-lock: day
    blocked-cmds: [/v, /vanish]
    deny-spawn: [WITHER]
    weather-lock: CLEAR
    owners: {}
    type: global
    priority: 0
  2. wizjany

    wizjany Administrator Developer

    priority only allows flags to override other flags...since you don't have blocked-cmds set in spawn or crates, it still uses the defaults you set on global.
    you just have to set blocked-cmds in those two regions so that vanish and v won't be blocked there.
  3. Cristian Marzana

    Cristian Marzana New Member

    what do you mean set blocked cmds in those two regions? spawn and crates? but wouldnt that make it so they cant use /v or /vanish there? i want them to use /v /vanish at spawn and crates but not out of that region.

    If i created allowed commands flag to spawn and crates they wouldnt be able to do any other commands besides /v and vanish. is there a way to make it so they have access to all commands without having to list them?
  4. wizjany

    wizjany Administrator Developer

    you need to override the blocked-cmds flag in those regions....idk why you brought up allowed-cmds because i didn't even mention it.
  5. Cristian Marzana

    Cristian Marzana New Member

    ok how do i override them? can you see if you can show me the difference using the region file up there? ^^^
  6. wizjany

    wizjany Administrator Developer

    you set the flag to something. please read.
  7. Cristian Marzana

    Cristian Marzana New Member

    ok i got it to work, now if i wanted the players to get out of the spawn/crate region, how can i make it so they automatically get out of vanish?
  8. wizjany

    wizjany Administrator Developer

    dunno. vanish isn't related to worldguard, we have nothing to do with it.