You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[11:22:28] [Server thread/ERROR]: [AreaShop] Reached replacement limit, probably has replacements loops, problematic message key: info-friendRemove, first characters of the message: %lang:info-friend|%0%|%[red]✕[gray] hover: Region %region% hover: %lang:action|Remove %0% as f
[11:22:28] [Server thread/ERROR]: [AreaShop] Reached replacement limit, probably has replacements loops, problematic message key: info-regionFriends, first characters of the message: [darkgreen][bold]►[reset] Added friends: [gray][bold] hover: Player §l%0%§c✕§7, §7§lDivel_Axl§c✕§
I found the problem and fixed it, basically the argument replacer (tags like %0% in the message) would loop infinitely in a very specific case, when these conditions are met:
Replacing a %0% causes the replacer to hit the limit (which limits the number of times a replacement run can be done, to prevent infinite replacing).
The inserted message causes the original message list to grow in size (the message is a list of strings, like the messages in EN.yml).
The inserted message contains the same tag as that got replaced.
These conditions together cause that the new tag added by the inserted message again gets replaced by the same message, and then the process repeats.
Thanks for your bug report about this, it would not be likely that I found this problem quickly. You can download the development build of AreaShop to prevent this happening again. I will probably release an official 2.3.2 version very soon because problems like these are very critical.
Current behavior
[11:22:28] [Server thread/ERROR]: [AreaShop] Reached replacement limit, probably has replacements loops, problematic message key: info-friendRemove, first characters of the message: %lang:info-friend|%0%|%[red]✕[gray] hover: Region %region% hover: %lang:action|Remove %0% as f
[11:22:28] [Server thread/ERROR]: [AreaShop] Reached replacement limit, probably has replacements loops, problematic message key: info-regionFriends, first characters of the message: [darkgreen][bold]►[reset] Added friends: [gray][bold] hover: Player §l%0%§c✕§7, §7§lDivel_Axl§c✕§
http://pastebin.com/NqkaQHeH
New behavior
Should not crash the server
Steps to reproduce (for bugs)
Your environment
The text was updated successfully, but these errors were encountered: