Solved Disguising Players According To Their Teams

Discussion in 'Plugin Development' started by [Cookie], Feb 4, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    [Cookie]

    I'm stuck at where disguising players when they join a game. I'm not sure how I would code it. I looked into some tutorials, from what I understand, I have created a disguise manager class as well as a disguise craft class which will disguise the player. But how would I make it so it disguises players based on their teams?

    Thanks in Advance.
     
  2. Offline

    ThePlayerPaul

    I don't get your question, sry :(
     
  3. Offline

    DeGambler

    @[Cookie]
    Just store the team-members of each team in arraylists and then get their contents.
     
  4. Offline

    [Cookie]


    :p It's okay I was sort of in a rush as I was leaving my house.
    Basically there are two teams, eg : red & blue. I would like to know how would I disguise red team as, let's say a chicken and blue as pig.
     
  5. Offline

    [Cookie]

    DeGambler I tried understanding ._. I still don't get it. Sorry, could you share some more info? cause I'm totally blank on this
     
  6. Offline

    [Cookie]

    bump :\
     
  7. Offline

    DeGambler

    @[Cookie]
    What I'm saying is you should store they names of the players in ArrayLists, like so:
    Code:java
    1. // Your other code
    2.  
    3. // redTeam & blueTeam are just example names, call them whatever you like
    4. private ArrayList<String> blueTeam = new ArrayList<String>();
    5. private ArrayList<String> redTeam = new ArrayList<String>();
    6.  
    7. // Your other code


    And then from there get all those players and disguise them.
     
  8. Offline

    zeeveener

    DeGambler

    I think the question is HOW does one go about disguising a Player as something else?
     
  9. Offline

    DeGambler

    zeeveener Ah, I understood he was using the DisguiseCraft API woops.:p
     
    zeeveener likes this.
  10. Offline

    [Cookie]

Thread Status:
Not open for further replies.

Share This Page