TabAPI Help...

Discussion in 'Plugin Development' started by Speaw, Oct 13, 2013.

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

    Speaw

    Code:java
    1. int y = 5;
    2. for(Player pl:OITC.instance.getArenaManager().getArena(p).getPlayers()){
    3. int h = convertHealth(pl.getHealth());
    4. TabAPI.setTabString(plugin, p, y, 0, pl.getName(), h);
    5. TabAPI.setTabString(plugin, p, y, 1, OITC.tagapiplayerr.get(pl.getName()) + " | " + OITC.tagapiplayer.get(pl.getName()) + TabAPI.nextNull(), h);
    6. TabAPI.setTabString(plugin, p, y, 2, OITC.hak.get(pl.getName()) + "/6" + TabAPI.nextNull(), h);
    7. y++;
    8.  
    9.  
    10. }


    with this code i can add players in tablist which one in the arena.But how can i order them(high to low points)
     
  2. Offline

    superguy9

    Ask Double_O_Negative since he is the one that developed this API.
     
Thread Status:
Not open for further replies.

Share This Page