marcelo-mason / SimpleClans

Full featured Clan system for Minecraft
http://dev.bukkit.org/server-mods/simpleclans/
50 stars 59 forks source link

Placing owner of a clan in the same clan will cause it to disband #621

Closed f0rb1d closed 4 years ago

f0rb1d commented 4 years ago

Hi,

Thank you for your contribution! I found a bug where placing the owner of a clan to the same clan would cause it to disband.

I think this should be easy to fix since you can simply add an if check.

Yours, A player

RoinujNosde commented 4 years ago

Thanks for reporting.

https://github.com/marcelo-mason/SimpleClans/blob/68065a3b7988e6f0d393dc816784a3621d086302/src/main/java/net/sacredlabyrinth/phaed/simpleclans/commands/PlaceCommand.java#L51 Checking if the clans are equal should fix it.