Prevent 3rd part plugins from moving shopkeepers
blablubbabcDEV opened this issue ยท 3 comments
Migrated from: https://dev.bukkit.org/projects/shopkeepers/issues/326
Originally posted by TheOnlyRealTGS (Jun 23, 2015):
What steps will reproduce the problem?
- Install KitBattle or other plugin that can move entities
- Use (KB) the snowball switch "ability" to switch positions with the villager
- Villager is movedWhat is the expected output? What do you see instead?
That shopkeepers prevent the entity from being movedWhat version of the product are you using?
1.6Do you have an error log of what happened?
noPlease provide any additional information below.
www.spigotmc.org/resources/kitbattle-advanced.2872/
PM for download
Originally commented by blablubbabc (Jun 23, 2015):
Hm, not sure how I would prevent regular entities from being teleported by other plugins..
It would probably be easiest to ask the author of that plugin to check if the teleported entity is a shopkeeper before teleporting them.
He can do that by checking entity.hasMetadata("shopkeeper").
He also might want to check entity.hasMetadata("NPC"), to exclude citizens npcs as well (just in case citizens npcs can be teleported by plugins as well, though they work slightly different then the shopkeeper npcs).
Originally commented by TheOnlyRealTGS (Jun 24, 2015):
[at]blablubbabc:
Yeah, I thought so, I've sent a bug report to him too.