An open-sourced Tablist API primarily made for 1.7x-1.8x Spigot servers. (This API can produce errors, please report them to me if you encounter any)
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency> <!-- Edge -->
<groupId>com.github.Lucaniuss</groupId>
<artifactId>Edge</artifactId>
<version>-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>/** * Implement the TabAdapter interface */publicclassTabLayoutimplementsTabAdapter {
privatefinalExamplePluginplugin = ExamplePlugin.getInstance();
/** * Return your desired tab header */@OverridepublicList<String> getHeader(Playerplayer) {
returnArrays.asList(" ", CC.BLUE + CC.BOLD + "Edge", " ");
}
/** * Return your desired tab footer */@OverridepublicList<String> getFooter(Playerplayer) {
returnArrays.asList(" ", CC.GRAY + CC.ITALIC + "lucanius.me", " ");
}
/** * Return your desired tab entries by creating a Set of TabData * * new TabData(TabColumn column, int slot, String text, int latency, Skin skin) */@OverridepublicSet<TabData> getEntries(Playerplayer) {
Set<TabData> entries = newHashSet<>();
entries.add(newTabData(TabColumn.MIDDLE, 1, CC.BLUE + CC.BOLD + "Edge"));
entries.add(newTabData(TabColumn.MIDDLE, 2, CC.GRAY + CC.ITALIC + "lucanius.me"));
entries.add(newTabData(TabColumn.LEFT, 4, "Left"));
entries.add(newTabData(TabColumn.MIDDLE, 4, "Center"));
entries.add(newTabData(TabColumn.RIGHT, 4, "Right"));
entries.add(newTabData(TabColumn.FAR_RIGHT, 4, "Far Right"));
entries.add(newTabData(TabColumn.MIDDLE, 19, "Your Skin", plugin.getEdge().getSkin(player.getUniqueId())));
returnentries;
}
}publicclassExamplePluginextendsJavaPlugin {
privatestaticExamplePlugininstance;
privateEdgeedge;
/** * new Edge(Plugin plugin, TabAdapter adapter) */@OverridepublicvoidonEnable() {
instance = this;
this.edge = newEdge(this, newTabLayout());
}
@OverridepublicvoidonDisable() {
this.edge.getService().destroy();
}
publicstaticExamplePlugingetInstance() {
returninstance;
}
publicEdgegetEdge() {
returnthis.edge;
}
}You can contact me on discord via my tag or server:
- My discord - lucA#0999
- My server - https://discord.biove.dev/
You're free to use this for anything, including using it for your own projects. However, if you want to sell it, leave credits and a link to this repository.