BentoBoxWorld / BentoBox

Expandable Minecraft server plugin for island-type games like SkyBlock or AcidIsland.
https://bentobox.world
Eclipse Public License 2.0
338 stars 140 forks source link

Mob Targeting Protection Setting #467

Open TheWranger opened 5 years ago

TheWranger commented 5 years ago

Is your feature request related to a problem? Please describe. Players can sometimes find it very annoying when a visitor comes onto their island and starts dragging monsters to them so that they attack island team members.

Describe the solution you'd like An island protection setting that controls what players on the island mobs will target.

Additional context Keep in mind that there's a CraftBukkit bug that's been around for forever that makes it so that mobs that are already targeting you cannot untarget you (or maybe they've finally fixed that?)

Poslovitch commented 5 years ago

That's going to be a tough one to implement.

TheWranger commented 5 years ago

I know disguise plugins like iDisguise and LibsDisguise use this mechanic, so hopefully it isn't too hard to implement.

Poslovitch commented 5 years ago

Hopefully they didn't use NMS

TheWranger commented 5 years ago

iDisguiseAdditions: https://github.com/robingrether/iDisguiseAdditions / https://www.spigotmc.org/resources/idisguiseadditions.24786/ LibsDisguises: https://github.com/libraryaddict/LibsDisguises / https://www.spigotmc.org/resources/libs-disguises.32453/ You could probably take a look at how these do it.

Poslovitch commented 5 years ago

Thanks for the hint!