WorldGuard

WorldGuard

8M Downloads

blocked-cmds troubles

LadyCailinBot opened this issue ยท 1 comments

commented

WORLDGUARD-3098 - Reported by Texnical

According to the documentation,

  • blocked used allow?
  • x x no
  • x x y no
  • x y x yes
  • x y x y no
  • allowed used allow?
  • x x yes
  • x x y yes
  • x y x no
  • x y x y yes

My setup: global blocked-cmds: [/ma, /stable] mobarenalobby allowed-cmds: [/ma]
So, shouldn't using /ma, /ma j, etc. be blocked in any region except those with allowed-cmds: [..., /ma, ...]? These commands are still allowed everywhere in that world.
I'm using snapshot version 5.9.1

commented

Comment by sk89q

Can you {{/wg info global}} and post the result here?

I wrote a test in code (but haven't tested in in-game) and could not reproduce it:
https://github.com/sk89q/worldguard/blob/1581390092ae0422a2e7fa88446dd8309f4072bb/src/test/java/com/sk89q/worldguard/protection/ApplicableRegionSetTest.java#L491