Giter VIP home page Giter VIP logo

Comments (2)

greatman avatar greatman commented on July 4, 2024

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.

Phoenix616 avatar Phoenix616 commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.