Home›Java›Mods›[API] TabListAPI
ModsJava

[API] TabListAPI

Java mod listed for Minecraft 1.7–1.9. Download on the author's site.

⬇ Download on Spigot
This API allows you to easily modify the Tablist.



[​IMG] ​


Features


Usage

[​IMG]

Header/Footer
Code (Java):
public void setHeaderAndFooter (Player player ) {
        TabAPI. setHeader (player,
                "§9Welcome to the server, ",
                "§a" + player. getName ( ) + "!" ) ;

        TabAPI. setFooter (player,
                "§2Online players",
                "§7" + Bukkit. getOnlinePlayers ( ). size ( ) + "§8/§6100" ) ;
    }
Items
Code (Java):
public void setItems (Player player ) {
        TabAPI. clearAllItems (player ) ; //Remove all items

        TabAPI. setItems (player, Arrays. asList ( //Add our custom items
                new TabItem ( "§0§c§lAdmins" ),
                new TabItem ( "§1§fYou!" ) ) ) ;
    }


If you want to modify the Tablist when a player joins, you should do it after a delay of a few ticks
Code (Java):
Bukkit. getScheduler ( ). runTaskLater (plugin, new Runnable ( ) {
            @Override
            public void run ( ) {
                setHeaderAndFooter (player ) ;
                setItems (player ) ;
            }
        }, 10 ) ;


Maven
Code (XML):
<repositories>
    <repository>
        <id>inventive-repo </id>
        <url>https://repo.inventivetalent.org/content/groups/public/ </url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>org.inventivetalent </groupId>
        <artifactId>tabapi </artifactId>
        <version>1.1.1 </version>
    </dependency>
</dependencies>

Links


Code (spiget-meta (Unknown Language)):
SlZOd2EkUm9kI1J3YW1GeUooVWtXa2QzZFdGPk4rSmFWelV3WVZoYWJHUiNSbk5hVnpVdytHMDVlVnAzUCswa0okUk1NMEp6WkZka2NHSnBPRDBrSiRSalIzZypXakpzZFZ7V1VtaFphM2h3WXpOJFFsVkZhMjFrYlZaNVl6SnNkbUpxTUcqa2JWWjVZekpzZG1KcFYrMGtSMlYwSlE9PQ==
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[API] TabListAPI is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9. Downloaded 5,457 times (via Spigot). Download it and open it directly in the game.

Explore more