[API] TabListAPI 1.1.2

API to modify Tablist entries and the header&footer text

  1. inventivetalent
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    This API allows you to easily modify the Tablist.



    [​IMG]


    Features

    • modify header and footer text
    • modify entries
    • independent skin icons
      • (skin name can be different from the displayed name)

    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==

Recent Updates

  1. Fix
  2. ReflectionHelper update
  3. 1.9 support

Recent Reviews

  1. Black_Eyes
    Black_Eyes
    1/5,
    Version: 1.1.2
    Doesn't works at all in 1.7, many errors in console. Don't say it works in 1.7 if it doesn't
  2. kywgame
    kywgame
    1/5,
    Version: 1.1.2
    i can't download this plugin
    plz fix download link............
    really i want download this plugin
  3. iDarky
    iDarky
    1/5,
    Version: 1.1.2
    Obfuscated for some reason, bugs, cannot use it.
    ...................................................................................
  4. Septogeddon
    Septogeddon
    5/5,
    Version: 1.1.2
    its not tested on 1.11.2, does it means this API doesnt work on 1.11.2?
    Anyway this is awesome!
  5. Bence990707
    Bence990707
    5/5,
    Version: 1.1.2
    Pretty neat resource, does it work with 1.8 clients if i use protocol hack though? 'Cause kraken doesn't seem to do that.
  6. Ropste
    Ropste
    2/5,
    Version: 1.1.2
    Nul :/ Because there are a lot of bug, and not very good :/ SOOO BAD DD DDDDDDDDDDDDD
  7. Maxviq
    Maxviq
    1/5,
    Version: 1.1.2
    author refuses to fix clearallitems bug which is mentioned so many times in the discussion... If you are a dev look elsewhere
  8. ark9026
    ark9026
    5/5,
    Version: 1.1.2
    Great API! The API works efficiently and is very easy to use. I highly recommend TabListAPI to any developer who needs to edit the tab list :)
  9. Struck713
    Struck713
    5/5,
    Version: 1.1.1
    Amazing API! <3
  10. wydgabriel
    wydgabriel
    5/5,
    Version: 1.1.1
    There's a way to order the added items?
    And how do I remove the player from tablist? Thanks :D good plugin