EngineHub / WorldGuard

🛡️ Protect your Minecraft server and lets players claim areas
https://enginehub.org/worldguard/
Other
821 stars 537 forks source link

world names with `w` at the start breaks command block usage #1945

Closed Josh65-2201 closed 2 years ago

Josh65-2201 commented 2 years ago

WorldEdit Version

7.2.11

WorldGuard Version

7.07

Platform Version

1.18.2 Paper 387

Confirmations

Bug Description

I have my worlds setup so that w is infront of the name. It cause issue as when using a command block i have to specify the world name if i put this in /region flag whub-all pvp allow but adding -wwhub say it already got a word name specified.

Expected Behavior

-w should have everything after be a string and should not count w as a world name parameter

Reproduction Steps

Create a world with w infont Change a flag with a command block adding the -wworld-name

Optional WorldGuard-Report

No response

Anything Else?

No response

me4502 commented 2 years ago

You're not writing the command correctly. There is a space after flag keys, if you enter it as you are, it's parsing them as extra flags not as the argument for the flag

Josh65-2201 commented 2 years ago

Can you give me an example of how its suppose to look since im following the formatting shown in game when doing /rg flag

me4502 commented 2 years ago

-w worldname

Josh65-2201 commented 2 years ago

Thanks