A simple, opensource, work in progress Tablist API.

Related tags

HTTP Clients TabAPI
Overview

Tab API

is an opensource tablist API made for the Spigot API.


Support

We currently support the following NMS versions, v1_16_R3, v1_15_R1, v1_14_R1, v1_12_R1, v1_10_R1, v1_9_R1, v1_8_R3 and v1_7_R4, we're willing to support more versions in the future, and feel free to open a pull request if you are able to add a version.

Issues

  • 1.7 tablist on 1.8 NMS implementation, currently broken because 1.8 removed the NetworkManager#getVersion method, and I want to avoid using external plugins like ProtocolLib.

Todo

  • Probably add wrapper classes to reduce the amount of code duplication, however I'm lazy.

Usage

The usage is very easy - here's an example:

Registering the handler itself:

Replace "v1_7_R4TabAdapter" with the version of NMS you're using (for example: v1_7_R4TabAdapter). Replace "TabImpl" with the TabElementHandler you're using (this is where the tab api gets the elements from.)

@Override
public void onEnable() {
    new TabHandler(new v1_7_R4TabAdapter(), new TabImpl(), this, 20L);
}

Making a new TabElementHandler implementation

public class TabImpl implements TabElementHandler {

    /**
     * Get the tab element of a player
     *
     * @param player the player
     * @return the element
     */
    @Override
    public TabElement getElement(Player player) {
        final TabElement element = new TabElement();

        for (int i = 0; i < 80; i++) {
            final int x = i % 4;
            final int y = i / 4;

            element.add(x, y, ChatColor.GREEN + "Slot: " + ChatColor.GRAY + x + ", " + y);
        }

        return element;
    }
}

Selling & Using

You're free to use this product for anything, including selling and running on your own server. However, if you're going to sell a plugin using this, please leave credits and/or a link to the repository.

You might also like...

Everything I code in java / Learn in Java I will post here to show my Progress :)

Everything I code in java / Learn in Java I will post here to show my Progress :)

This repository contains all the codee i have written or used to help me learn This is going to be a repository that holds the source files for codene

Jan 10, 2022

Java Swing application to upload files to FTP server with progress bar

 Java Swing application to upload files to FTP server with progress bar

Java Swing application to upload files to FTP server with progress bar Swing-based application that uploads files from local computer to a remote FTP

Feb 11, 2022

CoreLib - Necessary Libraries required to make the Cores work (API 1.0.13)

CoreLib Necessary Libraries required to make the Cores work (API 1.0.13) CoreLib is a collection of necessary libraries required to make the SurvivalC

Jan 4, 2022

Rework of html-java-dsl to work with newer Javas

java-html-dsl Example DSL for writing html in Java. Rework of benjiman/java-html-dsl to work with newer versions of Java This String doc = html(

Jan 25, 2022

馃搳It includes all the work done during the Java-React Bootcamp.

馃搳It includes all the work done during the Java-React Bootcamp.

馃捇 Java + React Bootcamp 馃捇 Part 1 - Java Part 2 - React 馃捇 Lecture Class: Youtube 馃懁 Instructor: Engin Demirog 馃摎 Course Materials: Kodlama.io Bootca

Jun 21, 2022

Lightweight installer written in java, made for minecraft mods, The installer uses JPanel and uses a URL to install to the specific area (Discord URL's work the best i've seen)

InstallerForJava Lightweight installer written in java, made for minecraft mods, The installer uses JPanel and uses a URL to install to the specific a

Dec 9, 2022

Mod Launcher by Jbro129 fixed to work with Root instead of VA

Fixed Jbro ModLauncher Mod Launcher by Jbro129 fixed to work with Root instead of VA Code Used: https://github.com/jbro129/PG3D-JbroLauncher https://g

Jul 23, 2022

Program finds average number of words in each comment given a large data set by use of hadoop's map reduce to work in parallel efficiently.

Program finds average number of words in each comment given a large data set by use of hadoop's map reduce to work in parallel efficiently.

Finding average number of words in all the comments in a data set 馃摑 Mapper Function In the mapper function we first tokenize entire data and then fin

Aug 23, 2021

A boilerplate project designed to work as a template for new microservices and help you get in touch with various useful concepts.

Microservice Reference Project This project is inspired by the idea to quickly create a production ready project with all the required infrastructure

Dec 17, 2022

Log4Shell RCE exploit using a gadget class. Not dependent on an old JDK version to work.

Log4Shell RCE exploit using a gadget class. Not dependent on an old JDK version to work.

Jan 4, 2022

Example usage of work manager in Android, while doing this study, image downloading was preferred as a method.

Example usage of work manager in Android, while doing this study, image downloading was preferred as a method.

android-workmanager-example Example usage of work manager in Android, while doing this study, image downloading was preferred as a method. Java 11 com

Jan 29, 2022

A Pomodoro Timer that allows you to collect Pokemon as you work.

Pomodoro: The Pok茅mon Collecting Game! A fun take on the Pomodoro Technique So, what does this application do? This application utilizes the famous Po

Jan 29, 2022

Program that allows employees to clock in and clock out of work. Employees who are managers can add, edit and delete employees and shifts from the database.

Program that allows employees to clock in and clock out of work. Employees who are managers can add, edit and delete employees and shifts from the database.

Clock-In-Clock-Out-System Created by: Kennedy Janto, Taylor Vandenberg, Duc Nguyen, Alex Gomez, Janista Gitbumrungsin This is a semester long project

Nov 5, 2022

These are examples of work/homework from the Java Camp 2022.

Hi 馃憢 , This is Java Camp 2022 Repository These are examples of work/homework from the Java Camp 2022. 馃敪 I鈥檓 currently working on JavaCamp2022 馃尡 I鈥檓

Oct 19, 2022

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

Swagger Core NOTE: If you're looking for Swagger Core 1.5.X and OpenAPI 2.0, please refer to 1.5 branch. NOTE: Since version 2.1.7 Swagger Core suppor

Jan 5, 2023
Comments
  • Add v1_8_R1 NMS support

    Add v1_8_R1 NMS support

    Most of the adapter was converted successfully, except showRealPlayers, as it needs access to the i field in the player's networkManager. This field is private and I am too lazy to use reflection :p

    showRealPlayers: Click to see

    opened by GrowlyX 0
  • API down or requires authorization?

    API down or requires authorization?

    Having an issue when trying to access the API via Maven. I'm receiving an error on Jitpack that I don't have read access to the repository, or that it doesn't exist. I've also tried using commit ids to no success.

    opened by mybe 0
  • 1.12.2 API Server suspended.

    1.12.2 API Server suspended.

    Around 5-10 minutes after starting the server, it hangs with this error. I am only running this plugin and a few dependencies. When I disable the tab in the source it works fine.

    https://www.toptal.com/developers/hastebin/caqiwanoje.md

    opened by sqwkz 0
Owner
Java, C, Python and D programmer.
null
Produtos-api-client - Biblioteca de consumo de uma API Rest b谩sica de produtos disponibilizada em outro reposit贸rio.

produtos-api-client Biblioteca de consumo de uma API Rest b谩sica de produtos disponibilizada no reposit贸rio: clique aqui para acessar Com essa bibliot

null 1 Jan 4, 2022
GithubReleases4J - GitHub Releases for Java , based on GitHub RESTful API .

GithubReleases4J - GitHub Releases for Java , based on GitHub RESTful API .

Carm 5 Jun 27, 2022
Simple Java library that can export all of your Spring endpoints into a Postman Collection

Postman Exporter for Spring This project is a simple Java library that can export all of your Spring endpoints into a Postman Collection json, which y

Lucas Sampaio Dias 30 Sep 6, 2022
This is Yoink Inc's Rat (Doesnt work if u want u can make it work and pull request this)

Yoink-RAT This is Yoink Inc's Rat (Doesnt work if u want u can make it work and pull request this) Why cuz How do i use it just put your webhook in it

INZO_Technologies 5 Dec 14, 2022
This app/widget is based on the work of Anthony (tonesto7), which is in turn based on the earlier work of David Schablowsky

Mustang Mach-E Widget for Android Intro This app/widget is based on the work of Anthony (tonesto7), which is in turn based on the earlier work of Davi

null 25 Nov 15, 2022
This is a very lightweight plugin for Velocity proxy. Have functions including tabList, pingList and global chat.

Essential-PlayerInfo This repo had been transported to our team, and will not be updated here. https://github.com/Team-Jackdaw/Essential-PlayerInfo In

Jonathan Hsu 2 Mar 4, 2022
Team Khonsari & Friends present the Novoline Opensource Project

Team Khonsari & Friends present the Novoline Opensource Project Credits Aidan - Providing the base jar for the initial remap skidunion - Providing the

liquid smokey balls 18 Jan 24, 2022
Diff Utils library is an OpenSource library for performing the comparison / diff operations between texts or some kind of data: computing diffs

Diff Utils library is an OpenSource library for performing the comparison / diff operations between texts or some kind of data: computing diffs, applying patches, generating unified diffs or parsing them, generating diff output for easy future displaying (like side-by-side view) and so on.

null 951 Jan 5, 2023
A free opensource domain tracker with a breakdown of which countries players connected with for each domain versions 1.13+

A free opensource domain tracker with a breakdown of which countries players connected with for each domain versions 1.13+

Ricky Lafleur 8 Aug 4, 2022
A library for JavaFX that gives you the ability to show progress on the Windows taskbar.

A clean and easy way to implement this amazing native Windows taskbar-progressbar functionality in javaFX Background Since Windows 7 there is a taskba

Daniel Gyoerffy 77 Nov 28, 2022