EngineHub / WorldGuard

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

Region Edge [Bug] #1927

Closed MinerMends closed 2 years ago

MinerMends commented 2 years ago

WorldEdit Version

Bukkit-Official Latest

WorldGuard Version

v7.0.7

Platform Version

Spigot 1.19 - GeyserMC 1.19

Confirmations

Bug Description

Image of bug: https://imgur.com/xDVcA6T

So basically, if you create a region around a box or some sort of edge-based selection with a drop off, you'll have this problem. For instance, I made a factions spawn, set the pvp to false, and set the deny-message to -e (empty). When you are inside the selection, nothing will appear when you try to break, pvp, etc. When you are outside of the region, nothing will be displayed because there is no region to get in the way. However, if you get too close to the edge of a region like this, it will show you that you cannot pvp here. This is a bit annoying as I wanted to completely remove the deny-message from my server as I don't feel it looks profesisonal nor pleasing to the eye. It's just not something I wanted to use.

Never the less, hopefully we can get this resolved!

Expected Behavior

It should be displaying nothing as technically the very edge of the region isn't inside the region so for it to display "You cannot pvp here" makes no sense. Especially when there's no region conflict or multipl regions.

Reproduction Steps

I explained it properly above. Create a region, go to the edge with deny-message set to false / pvp false and you'll see.

Optional WorldGuard-Report

https://pastebin.com/eN5q648E

Anything Else?

Nope. Sorry for the other issue created, hopefully this helps!

Joo200 commented 2 years ago

If you're not in the region you will not receive the deny-message from that region. The used player position is the food position from the player.

Don't create multiple issues for the same "bug".