Comments (2)
That error usually happens when the name of the player got changed but a money action happened before I did the change in the database (Think of a plugin that does a money action very early on login by example). That cause the issue to have 2 accounts in the database. I just need to find the proper fix.
from craftconomy3.
I just had the same issue and the cause for it was simple: I had two players that have the same username (due to one not being logged in for a while, changing his name and then someone else taking the name)
A potential fix would be to just use one of them, the question is which one? Ideally the one that is online with the name but if both are offline you would want to use the one that used the name last. Unfortunately that's not tracked in the plugin directly so maybe just use the higher ID? (which isn't necessarily the last online one but it's better than having the plugin error or having to check the last-login via the OfflinePlayer data)
A different solution would be to change the name of the previous user when one with the same logs in. (maybe to an invalid/duplicate marked one? That way this should also be prevent)
from craftconomy3.
Related Issues (20)
- StaticLoggerBinder HOT 1
- StaticLoggerBinder
- Contact
- Got this WARN in 1.13+ HOT 1
- Bank API via Vault Crash HOT 1
- Issues after creating DB mysql HOT 1
- 1.14 support? HOT 2
- Can't change currency rates HOT 1
- Use Bank instead of Username at IconomyChestshops
- /ccsetup after suffix "An internal error occurred while attemption to perform this command.
- My server is crashing and i think CC is causing it
- Why the other players in my server can't use /pay and /money, are there any nodes so I can fix it?
- How do I change the /money message and the prefix? HOT 1
- CarftConomy Error
- Daily login bonus HOT 1
- MySQL Issues on Spigot 1.16, CC3: "All parts of a PRIMARY KEY must be NOT NULL"
- Can't hook latest version of placeholderapi
- Link Craftconomy to Scoreboard HOT 2
- Server crashing 'cos of DB (utf8mb4)
- Is it support placeholder.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craftconomy3.