TechzoneMC / SpawnShield

Prevent players from entering a safezone in combat
MIT License
7 stars 1 forks source link

WorldGuard Region priority not respected ! #1

Open paris-ci opened 9 years ago

paris-ci commented 9 years ago

Good plugin. But... When you are in two regions at a time

==========  .. spawn_miniwarzone == Spawn
=   .... =
=   .... =
==========

example : Spawn (no pvp; priority 100) and spawn_miniwarzone (In the spawn region; pvp allowed; priority 200) If someone pvp'ed in spawn_miniwarzone, they are knockbaced by the plugin :/ That's bad ! Anyway good job !

Techcable commented 9 years ago

Dang, this will require lots of work to the backend of the plugin.

paris-ci commented 9 years ago

That will make your plugin a lot more helpful

paris-ci commented 9 years ago

Any update 'bout that ?

L4BORG commented 8 years ago

https://bukkit.org/threads/worldguard-api-pvp-flags.376662/ maybe?

paris-ci commented 8 years ago

Sounds cool

Techcable commented 8 years ago

The issue is calculating the edges of a region (at least for forcefeilding). I assume all regions are squares, and calculate the edges like that. For forcefielding, I could switch to the algorithm used by CombatTagPlus, which is just brute-force calculating what is the edges (which would work on all regions).

The general issue though, is that when you configure a region (for example spawn), to be blocked it assumes the entire region should be blocked. What I could do is make it possible for regions to be 'unblocked', so the plugin doesn't knock people back (as if they were in the region). This issue also arises with forcefielding, so I have to fix it before I switch forcefielding algorithms.