WorldGuard

WorldGuard

8M Downloads

Duplicating entry in MySql database member and owner simultaneously

LadyCailinBot opened this issue ยท 2 comments

commented

WORLDGUARD-2707 - Reported by Rasnak

I have found a bug in writing to the MySql database. If player creates a region and then he adds someone as a member and an owner simultaneously, he will recive an error message in his chat. Something like: "Failed to write regions....Duplicate entry region name". We partly fixed it by disabling the /rg addowner command for players, but they can still add more owners in /rg claim command. We're running a 1.4.7 tekkit server on MCPC+ bukkit core, we have tried the correct 1.4.7 version of worldguard and the newest development build of worldguard. Both have the same problem. If the issue occured, then errors are happening to every player, who is trying to do something with regions, till I reload it by /rg reload.
=> If someone is owner and member at the same time in one region, it causes an error, wchich is temporaly resolved only by reloading the plugin.
(PS: Sorry for my english)

commented

Comment by Rasnak

I have found a bug in writing to the MySql database. If player creates a region and then he add someone as a member and an owner simultaneously, he will recive an error message in his chat. Something like: "Failed to write regions....Duplicating entry region name". We partly fixed it by disabling the /rg addowner command for players, but they can still add more owners in /rg claim command. We're running a 1.4.7 tekkit server on MCPC+ bukkit core, we have tried the correct 1.4.7 version of worldguard and than the newest development build of world guard. Both have the same problem. If the issue is occured, than errors are happening to every player, who is trying to do something with regions, till I reload it by /rg reload.
=> If someone is simultaneously owner and member in one region, it causes an error, wchich disappears only by reloading the plugin.
(PS: Sorry for my english)

commented

Comment by sk89q

Fixed in the {{region-api-update}} branch.

Note: Do not actually use that branch yet.