poggit-orphanage / FactionsPro

By Tethered
21 stars 69 forks source link

inOwnPlot returns true when not in factions #77

Open buchwasa opened 5 years ago

buchwasa commented 5 years ago

When making a plugin that needed FactionsPro support, I found that using inOwnPlot provided some unexpected results, whenever I was in outside of a factions, it returned true, but when I created a faction, it would return false.

The workaround I used is isInFaction and inOwnPlot together

Awzaw commented 5 years ago

Thanks for pointing that out - the plugin itself checks that the player is in a faction before ever calling inOwnPlot, but when called externally you'd have to do it yourself. Fixed in next update.