Closed Prof-Bloodstone closed 2 years ago
Unfortunately it looks like /carbon reload
doesn't reload these files. My workaround for now is to hook the following script into the server restart routine:
Fixed in 6f157ce07dbe4ac811f43ebde010c04d2bc2d80e
Regarding the /carbon reload
, is a flag for that command or other means to force-refresh the user cache something that's wanted?
If I understand correctly, https://github.com/Hexaoxide/Carbon/commit/6f157ce07dbe4ac811f43ebde010c04d2bc2d80e doesn't actually provide a fix, just a command to force the username update, right?
is a flag for that command or other means to force-refresh the user cache something that's wanted?
It'd be nice for when there's an issue to implement a workaround like this, but I don't think it's high priority :) As it's now, I'll still use my workaround. Being able to run it more often than my restart cycle would be nice, but it's good enough.
The fix is to make the username transient. It's in the commit I linked. Other users have confirmed it fixing the issue.
Bug Description:
With the default JSON config storage, CarbonChat stores user settings in
plugins/CarbonChat/users/<UUID>.json
. One of the things stored there isusername
. Unfortunately it looks like it is never invalidated - thus changing your name will make Carbon still use your old name for months.What is not working as it should?
New user name should be used after changing account names (preferably with configurable cache time, or just falling back to use Paper's
usercache.json
). Since this name is used, I believe there might be another bug - thatdisplay_name
is not respected so if other plugins modify it, it won't be used.Steps to reproduce:
users/
dir is used, no matter how long ago it was changedSystem Details:
95c58a7b0696e226db547d3eb9e811d4a62260ce
, downloaded March 16th)