ElgarL / Towny

Towny Advanced plugin for Bukkit @ http://palmergames.com/towny/
http://palmergames.com/towny/
76 stars 92 forks source link

Fix for name changing with Vault economies that already support UUIDs #173

Closed ezeiger92 closed 8 years ago

ezeiger92 commented 8 years ago

Checks the player's new name for an economy account. If found, the account isn't destroyed and recreated.

Vault has no function to remove accounts, so name changes cause Towny to create a second account with the same UUID. In CraftConomy, this throws a database exception, which is not caught by Towny and breaks name changes.

ezeiger92 commented 8 years ago

... Well that did not go where I wanted, dangit. Sorry!