Multiple profiles per player

Discussion in 'Archived: Plugin Requests' started by WhyHaveALife, Jul 21, 2014.

  1. Offline

    WhyHaveALife

    When a player logs on, they are able to create multiple characters and pick which one to play on like you can have multiple characters in a RPG server. Each character will have separate inventory and armor slots and will be recognized by plugins as different players. So for a RPG plugin, it would allow players to create multiple profiles, maybe by tricking plugins into thinking of the player as origninalname_charactername?

    Players should be able to create upto X amount of characters, and change them with a command.
     
  2. Offline

    Stealth2800

    I was experimenting with this a while back and it seems to be possible, although it's not the easiest thing to do in the world.

     
    WhyHaveALife likes this.
  3. Offline

    tyduptyler13

    This sounds interesting. I feel like it would require a decent MMO system built into it or the ability to make character proxys. For instance, create multiple fake players on the server that you can take over so that other plugins don't see you as the same player, thus producing a separate settings, inventories, and stats for each "player"/character.
     
  4. Offline

    WhyHaveALife


    I can do the somewhat decent MMO system with existing plugins but players always felt restricted that they could only have one character, so I was thinking about this plugin. As for the fake players, thats what I was thinking when I said trick plugins into thinking of a player as playername_charactername so they can act as completely different person for plugins under different characters
     
  5. Offline

    timtower Administrator Administrator Moderator

    Easier said than done.
     
    Jaaakee224 likes this.
  6. Offline

    WhyHaveALife

    so is it not possible?
     
  7. Offline

    timtower Administrator Administrator Moderator

    Even if it was: it wouldn't be worth the effort, just realized that you also need to change the UUID that will come from mojang. Plugins aren't only using player names anymore.
     
    WhyHaveALife likes this.
  8. Offline

    Iroh

    Removed posts advocating disabling server authentication.
     
  9. Offline

    Xxstick

    This plugin sounds very usefull and funny
     
  10. Offline

    timtower Administrator Administrator Moderator

    It is, pretty much impossible to fake all plugins though.
     
  11. Offline

    Xxstick

    Is it possible with a MySQL or something like that? Something what can make a file wich make a protocol for the user with the fake Player Name and with the Skin like:
    Player1:
    Name: Player2
    Skin: Player1
    Name: Player3
    Skin: Player1
    I dont know if this is possible but maybe there is a way to do make a plugin like that
     
  12. Offline

    timtower Administrator Administrator Moderator

    Xxstick Plugins store data by UUID now, the same thing handles skins. Hard to fake, if not impossible.
    The storage of this all isn't the issue at all, the faking is.
     
  13. Offline

    Xxstick

    can it be possible if there is no faking but something like a nickname above the head like Player1_2 that this is his/her second account? like changing the nametag is like choosing another account or getting new Permission rank
     
  14. Offline

    Necrodoom

    Xxstick and other plugins will still see him as same player.
     
  15. Offline

    timtower Administrator Administrator Moderator

    Disadvantage of UUID's, your method won't work.
     
  16. Offline

    Xxstick

    In the minecraft launcher there is a button "Profile Editor", there you can add Profiles, if this a possibility to make it work? (I didnt work with the Profile Editor thats why I ask)
     
  17. Offline

    timtower Administrator Administrator Moderator

    Xxstick Nope, UUID is mojang side, has nothing to do with profiles.
     
  18. Offline

    Necrodoom

    Xxstick that is for different MC versions.
     
  19. Offline

    Xxstick

    Is it possible to make a plugin wich gives you an Item if you join where you can open a GUI which allows you to choose a Profile with a different nickname, permission rank, inventory and Skin as the other profiles? (if the UUIDs gives the possibility to do that) maybe this can be done with a database or something like that
     
  20. Offline

    Necrodoom

     
  21. Offline

    timtower Administrator Administrator Moderator

    Xxstick Like I said already: the storage isn't the issue at all. The fact that we need to provide a new UUID and playername is the issue.
    And please use the tahg or reply button when you reply to somebody.
     
  22. Offline

    Xxstick

    Can it be possible to save the UUID, create a new one with no items in the inventory and new Name like if the Player is new on the Server? Just if this is possible and allowed. I just know that in the UUID is everything like Player Name, what is in the inventory and some more.
     
  23. Offline

    timtower Administrator Administrator Moderator

    We need to work with a player object, that object contains an UUID and a name. Everything that plugins / the server itself will do will happen based on one of those two.
    I know how to change those values but I have really no idea what kind of impact it will have on the server ( if it will be able to run at all after the change )
     
  24. Offline

    Xxstick

    not really changing those values, just saving the UUID if a Player joins, then its like a raw Version and then using it for every new Profile of a Player. could this be possible?
     
  25. Offline

    timtower Administrator Administrator Moderator

    Could be possible, but it won't do anything.
    We need to change the UUID and name in the player object before any other plugin will recognize it.
     
  26. Offline

    Xxstick

    and if it will Change automatically like if a Player join the Server he will use his Default UUID, if he type a command like "/Profile create [Profilename]" then the UUID will get renamed and a the new one will be created so he have always using just one UUID but different UUIDs and he can Change them like "/Profile use [Profilename]" and the datebase could manage that
     
  27. Offline

    timtower Administrator Administrator Moderator

    Like I said multiple times: The storage of the new UUIDs and names isn't the issue. Making the entire server recognize it is.
    Will make a small test plugin that will give every player that joins a new UUID and playername. Please test it and see how the entire server and other plugins handle it ( and your client )
    I won't test it myself as it isn't guaranteed safe for the server.
     
  28. Offline

    Xxstick

    I would test it, but on a local Server to see how many ressources it use
     
  29. Offline

    timtower Administrator Administrator Moderator

    Don't worry about the resources, more worried about corrupted data files.
    EDIT:

    To everybody that will download this plugin. I am not responsible to anything that happens to your client / world / server / anything else that could somehow be related to this plugin.
    file (open)
     
  30. Offline

    Zupsub

    A solution might be to change the incoming uuid packet from the Mojang server.
    So to change the profil the old and a new UUID would be saved and the player would be kicked.
    All uuid-packets must be catched, then (when the player joins) the uuid would be compared and (if necessary) changed to the new one. So the whole server would get the new uuid.

    However, the problems:
    The new UUID might be the same as a (Fake)Player already has on your server (not so dramatic);
    but it might be the same as another player gets, when he buys minecraft.

    Fetching/changing packets from the Mojang Server is quite difficult I think, because ProtocolLib doesn't support it, (maybe it does?). Maybe this is impossible at all.

    The uuid-packet doesn't exists, there is a bigger packet wich contains the uuid (and other things). Don't know, how difficult it is to change it.


    So everybody feel free to try this, but I won't. Too much work for this small advantage.
     

Share This Page