TabAPI help?

Discussion in 'Plugin Development' started by ibWill, Nov 6, 2013.

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

    ibWill

    Hi heres my problem: i cant get the tab api to get higher than 0 y.

    How i want my tab to look:
    Code:
    __________________________________________________
    |Team1         |Team2            |              |
    |--------------|------------------|---------------|
    |              |                  |              |
    |--------------|------------------|---------------|
    |player1      |player2          |              |
    |--------------|------------------|---------------|
    |              |player3          |              |
    |--------------|------------------|---------------|
    |_________________________________________________|
    But it only looks like this:
    Code:
    ____________________________
    |team1                    |
    |--------------------------|
    |team2                    |
    |--------------------------|
    |                          |
    |--------------------------|
    |player1                  |
    |--------------------------|
    |player2                  |
    |--------------------------|
    |palyer3                  |
    |--------------------------|
    |__________________________|

    heres my code:
    Code:java
    1. public void update(Player p){
    2. TabAPI.setTabString(plugin, p, 0, 0, "team1" + TabAPI.nextNull());
    3. TabAPI.setTabString(plugin, p, 2, 0, "team2" + TabAPI.nextNull());
    4. TabAPI.setTabString(plugin, p, 1, 1, "player1" + TabAPI.nextNull());
    5. TabAPI.setTabString(plugin, p, 2, 1, "player2" + TabAPI.nextNull());
    6. TabAPI.setTabString(plugin, p, 2, 2, "player3" + TabAPI.nextNull());
    7.  
    8. TabAPI.updatePlayer(p);
    9. }
     
  2. Offline

    maxben34

    ibWill I think you need to add more slots so the tab itself is bigger. I can't tell you this for sure however.
     
  3. Offline

    ibWill

    maxben34
    I've looked at the API and there is nothing they sugget more?
     
  4. Offline

    maxben34

    I said increase your player slots to make the tab list itself larger so it will have multiple rows.
     
  5. Offline

    ibWill

    Oh ok thanks so much!
     
Thread Status:
Not open for further replies.

Share This Page