Plugin request

Discussion in 'Plugin Requests' started by mrxqware, Sep 30, 2015.

Thread Status:
Not open for further replies.
  1. @tkuiyeager1 The red wool assigns the player to the red team and the blue wool assigns the other player to the blue team. That's what you made and it's perfect!

    But I want something extra in it.

    If a player, who got spawned with a redwool block switches to a regular leather_helmet, then I want the plugin to remember that the player is still red, with the red prefix and tag.

    That's why I suggested if it would be possible to make some kind of playervariable that gets the value 1 or 2

    If( redblock in helmetslot){ // you already made this
    giveredtag(player); // you already made this
    playervariable = 1;
    } elseif (blueblock in helmetslot){ // you already made this
    givebluetag(player); // you already made this
    playervariable = 2;
    }

    then because of the playervariable the plugin could check:

    if(playervariable == 1){
    giverredtag(player);
    }
    if(playervariable == 2){
    givebluetag(player);
    }

    So this way the players in the red team stay red, even if they change to a leather_helmet, iron_helmet, gold_helmet
    and the players who had the blue wool, stay blue even if they switch to another helmet.
     
  2. Offline

    tkuiyeager1

    ok @mrxqware i will try to make it but it will be only tommorrow.
     
  3. @tkuiyeager1 I've found a way to do it! Thank you for all you hard work and patience ^^ You're a good guy and an awesome coder! I couldn't have done it without you! Thanks to you I had my first good experience with coding a bukkit plugin in eclipse. I hope I'll be as good as you some day, so I will be able to help someone else ;)

    I would also like to thank @timtower for his tips and view on the project
     
  4. Offline

    tkuiyeager1

  5. Offline

    Scimiguy

    Please mark this thread as Filled if your request is completed
     
Thread Status:
Not open for further replies.

Share This Page