EconomyLite icon indicating copy to clipboard operation
EconomyLite copied to clipboard

Exception thrown when check player's balance(probably caused by using mysql)

Open Tollainmear opened this issue 7 years ago • 4 comments

when I execute "bal Tollainmear", the exception appeared in console, Detailed Log on Gist, this issue may caused by using Chinese characters as currency unit, here is my currencies.conf:

coin { plural=卡布 singular=卡布 symbol="¢" } current=coin

Tollainmear avatar May 21 '18 15:05 Tollainmear

Besides this, I found if we using Economylite to connect two bungeed server, they can't refresh in real-time, that means if I set Tollainmear's balance to 0 in server "lobby", the "world" server which using the same database, could not get the newest balance of Tollainmear, but it would be great if we could make it changed immediately in both server which using the same database.

Tollainmear avatar May 21 '18 16:05 Tollainmear

Yes, it would appear that the issue is Chinese characters.

The balance updating is a result of caching, which greatly reduces the amount of SQL queries required making the server run better. I'll think about adding an option to disable caching. The caching doesn't actually cause balances to be incorrect, the user only has one actual balance at a time.

Flibio avatar May 21 '18 19:05 Flibio

Of curse, whether it, the issue which caused by Chinese characters, should be repaired?

BTW, could we update player's balance in real-time for bungee servers in the future version?

Tollainmear avatar May 22 '18 03:05 Tollainmear

I'll look into your issue with Chinese characters.

I'll also look into adding the ability to configure the cache.

Flibio avatar May 22 '18 19:05 Flibio