Zrips / Residence

Residence Bukkit Plugin
135 stars 85 forks source link

Better API for plugins (Magic) #536

Open bobhenl opened 4 years ago

bobhenl commented 4 years ago

Hi, could you somehow improve your api so Magic and other plugins https://www.spigotmc.org/resources/magic.1056/ could check more things?

The problem is that players can use magic and for ex. kill another animals (for ex. poison spell or another spells) etc.

Author responses me:

No, Magic has no idea that residence blocked the health, unfortunately
real PvP integration with Residence would fix that, but I seem to recall that was problematic, like maybe they don't have Maven support or something.
So inside someone's residence, you can kill mobs with a wand? But not with a melee weapon or splash potion of harm?
You could also try the "wound" spell in case the overrides didn't work. That one does physical damage out of the box.
I'm really just stabbing in the dark here, though- I've never actually used Residences at all.
there is no integration at all between Magic and Residence, nothing that will allow spells to know which mobs they can hurt or not.
So any protection you are seeing is from Residence itself, and I do not know how to configure that plugin or why it would be allowing killing in other player's residences.

I think if Residence is not blocking that (the damage has a source, so it should be blockable) there's not much I can do about that.

And I can't read that Residences message but I'm guessing it's coming from the integration

Few days ago it also spammed me this to my players on Spawn, because they wanted to use spells there... https://imgur.com/undefined

https://discord.gg/j5ur6qR Maybe you could try to talk with author about it a little bit? He's active.

bobhenl commented 4 years ago

Still needed this "I think you just need to wait for zrips to fix the canDamage code in Residence" for poison spell check etc.

bobhenl commented 3 years ago

Now it will be useful for Regionerator plugin too https://www.spigotmc.org/threads/regionerator.92022/page-27