Giter Site home page Giter Site logo

Virtual Accounts about gringotts HOT 6 OPEN

minecraftwars avatar minecraftwars commented on September 4, 2024
Virtual Accounts

from gringotts.

Comments (6)

Tyraen avatar Tyraen commented on September 4, 2024

I guess the question I should ask, then, is how can I help, and where should I look in the code?

from gringotts.

jastice avatar jastice commented on September 4, 2024

Thanks for asking! The things to do would be:

  • make an AccountHolderProvider for virtual accounts and add it to the providers with lowest precedence
  • abstract or subclass GringottsAccount to support the purely virtual behavior
  • make the provider use the virtual account

from gringotts.

Tyraen avatar Tyraen commented on September 4, 2024

Alright, so I'm looking through the org.gestern.gringotts.accountholder package and I've identified the AccountHolderFactory where the providers are linked. I'm wondering if you prefer doing this differently from how I would. I was going to suggest I create a new class called VirtualAccountHolder that implements in the same way that PlayerAccountHolder does, but I'm not sure that's necessary. PlayerAccountHolder looks like it currently supports everything that a virtual account would need, so the benefit of another class would, unless I'm wrong, be merely for aesthetic and organizational purposes?

from gringotts.

jastice avatar jastice commented on September 4, 2024

PlayerAccountHolder is/should be tied to how Minecraft and Bukkit represent a player, that is, an OfflinePlayer object, which should contain a valid player UUID -- at least, Gringotts works under this assumption. Furthermore, player accounts should behave differently from purely virtual accounts.

By the way, do you have a preferred instant messenger? Makes it easier to discuss things.

from gringotts.

Tyraen avatar Tyraen commented on September 4, 2024

Well, I'd prefer to use IRC, but I don't think you guys have a channel, do you? If not that, then I can download Pidgin, which supports most chat protocols. What do most of you use?

from gringotts.

jastice avatar jastice commented on September 4, 2024

That's cool, we're on #minecraftwars on freenode

from gringotts.

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.