Share EXP with someone!

Discussion in 'Archived: Plugin Requests' started by daniel5151, Nov 5, 2012.

  1. Offline

    daniel5151

    I run a small server for a couple of friends, and we like to pair up in teams of two and three. We work together, build together, share materials, etc... Sadly, what always happens is that one of us goes mining, gets tons of EXP, while the other builds, and has almost none.

    I think that a plugin that allows you to share EXP between two (or more) players would be really cool!

    Pretty much the plugin would work as follows:
    Both players want to share EXP, so one person types something along the lines of /shareEXP {playername2}. The other player would then get a message like "{playername1} wants to share EXP with you. type /shareEXP yes to accept and /shareEXP no to decline." Once both players accept, the plugin kicks in.

    The plugin would add both players EXP, and balance the EXP evenly between the players. Both players would then have the same amount of EXP in their experience bar, and from then-on, when one player gets experience, so does the other. When one player does something to lose EXP, the other loses an equal amount.

    Example: Player A mines and gets 25 EXP. Player B now also has 25 EXP. Player B then goes and enchants something for 10 levels of EXP, leaving him with 15 EXP. Player A now has 15 EXP also.

    When two people decide to share EXP they would have to weigh the risks vs gains (AKA, someone dying with all of their EXP)

    Lastly, if the two (or more) player decide to stop sharing, their EXP would be split evenly among themselves, and the EXP system would go back to normal.

    Although i don't know Java, I think the plugin should be pretty straightforward to code.

    Thanks for reading!
     
  2. Offline

    CoffeeOD

    Private message send, reply when time :)
     
  3. Offline

    Kiakaha

    You should make that as an added bonus. if a shared player dies. all the xp is kept safe on the live player.

    It's hard to trust people enough to share .. but sharing is also rewarding..

    Anyway, just an idea. not an official request.
     
  4. Offline

    Rprrr

    Why not just split all of the XP before it's received? So for example, if player A and B are sharing XP..:
    Player A mines something. Without sharing, he would get 10 EXP for this. But he's sharing with player B, so he'll get 5 EXP and so will player B.

    I think that's way easier to code and more understandable for the users on your server.
     
  5. Offline

    Deleted user

    I could do this, make a party system type plugin.
     
  6. Offline

    daniel5151

    Cool idea, but at the same time, the two players could just redo the share command, and then they would both regain the EXP...

    I think that'd be a cool feature, but its not really what i wanted in the plugin. I wanted it so that two people both got a lot of EXP at their disposal, and they could both dip into it, like a bank. The sharing feature would be a cool alternative, maybe as a separate command. (Kinda requesting it, if someone wants to put it in)
     

Share This Page