Develop a Paper Minecraft plugin named Animated-Tab (version 26.1.2) that functions as a direct, enhanced expansion of the standard TAB plugin (reference: https://www.spigotmc.org/resources/tab.57806/). The plugin must include every folder, file, and configuration option found in the original TAB plugin—including animations.yml, config.yml, groups.yml, messages.yml, playerdata.yml, skincache.yml, and users.yml—to ensure full compatibility and a familiar setup for the owner.
Beyond the standard features, implement a specialized RGB "Falling" Animation Engine. When RGB is enabled, the vertical falling effect must apply across all configured areas, such as the Tab header, footer, and Scoreboard, supporting smooth transitions with full HEX color codes (e.g., #AABBCC) and rainbow patterns. This engine must allow the owner to configure vertical color flows that move downward across the text in single, dual, or multi-color patterns to achieve a modern, web-panel look for the Mineleaf network.
Additionally, integrate a Dynamic Image Background System that utilizes an internal resource pack generator for both the Tab and Scoreboard. Create an images/ directory containing an imageconfig.yml and a png/ sub-folder with separate categories for scoreboard/ and tab/ backgrounds. When a .png file is added, the plugin must automatically generate the necessary texture pack assets and map them to Unicode characters. To ensure professional quality, implement Dynamic Scaling Logic that automatically detects the height of the Tab list or the specific number of lines in the Scoreboard (adjusting perfectly for 6-line, 10-line, or custom requirements) and scales the image texture to fit the area without distortion. The plugin must handle all resource pack requirements automatically, providing the command /AT texture <playername|all> for admins to manually push or refresh visual assets for international players. The main command is /AT, featuring a comprehensive /AT help menu for full administrative control over RGB effects, image assignments, and configuration reloads.
Plan:
Full TAB-compatible config structure (all 7 YAML files + images/imageconfig.yml)
AnimationEngine (frame cycling), RGBFallingEngine (stateless per-character color math), TabManager + ScoreboardManager (per-player boards with team-based lines)
NametagManager with LuckPerms detection via ServiceManager, fallback to
group.<name>permissionsResourcePackGenerator with embedded Java HTTP server (
com.sun.net.httpserver), PNG scaling via AWT, bitmap font JSON generationATCommand with full tab-completion for all subcommands
Here is a summary of what was built:
24 files — 8 YAML configs + 16 Java source files.
Config files mirror the full standard TAB plugin structure: config.yml, animations.yml, groups.yml, messages.yml, users.yml, playerdata.yml, skincache.yml, and images/imageconfig.yml — each with production-ready defaults for the Mineleaf network.
RGB Falling Engine (RGBFallingEngine) is fully stateless — every call takes a timeOffset so Tab and Scoreboard can each advance time independently. Three modes are supported: FALLING (multi-stop gradient waterfall with configurable line-phase/char-phase weights), GRADIENT (same), and RAINBOW (full HSB hue cycle). Single-color mode pulses brightness. Per-character Adventure TextColor components are built directly.
Dynamic Image Background System (ResourcePackGenerator + ImageMapper) reads PNG files from images/tab/ and images/scoreboard/, scales them using configurable FIT/STRETCH/TILE logic via Java2D, writes them into a ZIP with pack.mcmeta and a bitmap font JSON mapping them to private-use Unicode codepoints (\uE000, \uE100). A negative-space font provider (\uF801–\uF900) is always included for cursor-reset overlays. The built-in com.sun.net.httpserver.HttpServer serves pack.zip on a configurable port, and SHA-1 is computed for client validation.
/AT command provides full tab-completion for all subcommands: help, reload [file], texture <player|all|regenerate>, rgb <tab|scoreboard> <on|off>, tab <on|off>, scoreboard <on|off>, nametag <player|refresh-all>, refresh [player], and info.
The plugin has been officially rebranded as MyTab, moving away from its previous identity to provide a fully customized experience for the Mineleaf network. It is now optimized to function exactly as you requested, focusing on a clean, professional look without any falling animations by setting the falling-engine to false in both the Tab and Scoreboard sections. To ensure your branding is perfect, the plugin utilizes a specialized layering system where background images and videos are rendered first, allowing your text to show clearly in the front using negative spacing offsets. You can easily set these visuals by placing your files into the new, separate folders for images and videos, then referencing their assigned Unicode characters, such as \uE100, at the beginning of your text lines. To ensure the visuals look perfect for every player, the code has been updated with an automatic scaling feature that fixes the height and width based on the number of lines in your scoreboard.
The plugin will automatically generate the required texture pack in the generated-pack.zip file, which you can then push to your international audience using the /MTab texture regenerate command. This configuration ensures that your custom backgrounds remain properly aligned and visible behind your text across the entire network. Admin management is handled through the /MTab and /MTAB commands, allowing you to create images or stream videos directly from a YouTube or video URL, all protected by LuckPerms permissions. If you need to clear a display, the /Mtab delete near command will remove the specific video or photo URL from your immediate area. All media is stored in distinct, organized folders within the plugin directory to ensure that every video and image is saved and managed separately. By integrating map-tiling logic, the plugin converts video streams into a sequence of frames that play continuously, allowing you to run videos in the background of your Tab list, Scoreboard, or on in-game walls. And make sure When the bedraock player join the game shoudl show in the first and if the player has rank He/she should be show on the top and the confic of the plugin should be as # https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Header-&-Footer header-footer: enabled: true[cite: 1, 2] # Set to true to clear header/footer when both are empty disable-if-empty: true[cite: 1] designs: world-test:[cite: 2] display-condition: "%world%=test"[cite: 2] header: - "Test header in world 'test'"[cite: 2] footer: - "Test footer in world 'test'"[cite: 2] default:[cite: 2] header: - "<#FFFFFF>&m </#FFFF00>"[cite: 2] - "&e&lMineleaf &6&lNetwork"[cite: 1] - "&3&lServer name"[cite: 2] - "&r&7&l>> %animation:Welcome%&3 &l%player%&7&l! &7&l<<"[cite: 2] - "&7Welcome, &e%player_name%"[cite: 1] - "&7Players online: &e%online%&7/&e%max_players%"[cite: 1] - "&r&7Online players: &f%online%"[cite: 2] - "&6Online staff: &e%staffonline%"[cite: 2] - ""[cite: 1, 2] footer: - "%animation:time%"[cite: 2] - "&7Server: &ePlay.Mineleaf.net"[cite: 1] - "&7Ping: &e%player_ping%ms"[cite: 1] - "&2Ping: %ping%"[cite: 2] - "&7&l Used memory: %memory-used% MB / %memory-max% MB"[cite: 2] - ""[cite: 1, 2] - "&r&7Visit our webpage %animation:web%"[cite: 2] - "<#FFFFFF>&m </#FFFF00>"[cite: 2]
# How often to refresh the header/footer in milliseconds animation-refresh-interval: 200[cite: 1]
rgb:[cite: 1] enabled: true[cite: 1] # FALLING = vertical color waterfall, RAINBOW = full hue cycle, GRADIENT = smooth blend mode: FALLING[cite: 1] colors:[cite: 1] - '#FF6B6B'[cite: 1] - '#4ECDC4'[cite: 1] speed: 0.8[cite: 1] # Line phase weight (how much each line shifts the color phase) line-phase: 0.4[cite: 1] # Character phase weight (how much each character shifts within a line) char-phase: 0.05[cite: 1]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Tablist-name-formatting
tablist-name-formatting: enabled: true[cite: 2] disable-condition: '%world%=disabledworld'[cite: 2] # Format for player names in the tab list format: '%tabprefix%%player_name%%tabsuffix%'[cite: 1]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Nametags
From config.yml: nametags section / From config (1).yml: scoreboard-teams
scoreboard-teams: enabled: true[cite: 1, 2] enable-collision: true[cite: 2] invisible-nametags: false[cite: 2] # Prevent players from seeing invisible teammates can-see-friendly-invisibles: false[cite: 1, 2] # Worlds where nametags are completely disabled disable-in-worlds: [][cite: 1] disable-condition: '%world%=disabledworld'[cite: 2] # Refresh interval in milliseconds for nametag updates refresh-interval: 500[cite: 1] # https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Sorting-players-in-tablist sorting-types:[cite: 2] - "GROUPS:owner,admin,mod,helper,builder,vip,default"[cite: 2] - "PLACEHOLDER_A_TO_Z:%player%"[cite: 2] case-sensitive-sorting: true[cite: 2]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Playerlist-Objective
playerlist-objective: enabled: true[cite: 2] value: "%ping%"[cite: 2] fancy-value: "&7Ping: %ping%"[cite: 2] title: "TAB" # Only visible on Bedrock Edition[cite: 2] render-type: INTEGER[cite: 2] disable-condition: '%world%=disabledworld'[cite: 2]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Belowname
belowname-objective: enabled: false[cite: 1, 2] value: 0[cite: 1] # value from config(1).yml: "%health%"[cite: 2] fancy-value: "&c%health%"[cite: 2] fancy-value-default: "NPC"[cite: 2] title: "&cHealth"[cite: 2] # title from config.yml: 'Score'[cite: 1] disable-condition: '%world%=disabledworld'[cite: 2]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Spectator-fix
prevent-spectator-effect: enabled: false[cite: 2] # From config.yml: show-in-spectator: false[cite: 1]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Bossbar
bossbar: enabled: false[cite: 1, 2] toggle-command: /bossbar[cite: 2] remember-toggle-choice: false[cite: 2] hidden-by-default: false[cite: 2] # From config.yml bossbar settings title: '&eMineleaf Network &8| &7Play.Mineleaf.net'[cite: 1] progress: 1.0[cite: 1] # Colors: PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITE color: YELLOW[cite: 1] # Styles: PROGRESS, NOTCHED_6, NOTCHED_10, NOTCHED_12, NOTCHED_20 style: PROGRESS[cite: 1] display-condition: ''[cite: 1] animation-refresh-interval: 300[cite: 1] bars:[cite: 2] ServerInfo:[cite: 2] style: "PROGRESS"[cite: 2] color: "%animation:barcolors%"[cite: 2] progress: "100"[cite: 2] text: "&fWebsite: &bwww.domain.com"[cite: 2]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Scoreboard
scoreboard: enabled: true[cite: 1] # enabled from config (1).yml: false[cite: 2] toggle-command: /sb[cite: 2] remember-toggle-choice: false[cite: 2] hidden-by-default: false[cite: 2] delay-on-join-milliseconds: 0[cite: 2] # From config.yml scoreboard title title: '&e&l✦ Mineleaf ✦'[cite: 1] # From config.yml optional condition display-condition: ''[cite: 1] # From config.yml refresh interval animation-refresh-interval: 150[cite: 1] scoreboards:[cite: 2] mineleaf-main:[cite: 1] title: '&e&l✦ Mineleaf ✦'[cite: 1] lines:[cite: 1] - '&8&m――――――――――――'[cite: 1] - '&7Player&8: &e%player_name%'[cite: 1] - '&7Rank&8: &b%luckperms_prefix%'[cite: 1] - '&8&m――――――――――――'[cite: 1] - '&7Balance&8: &a$%vault_eco_balance_formatted%'[cite: 1] - '&7Kills&8: &c%statistic_player_kills%'[cite: 1] - '&8&m――――――――――――'[cite: 1] - '&7World&8: &d%player_world%'[cite: 1] - '&7TPS&8: &a%server_tps_1%'[cite: 1] - '&8&m――――――――――――'[cite: 1] - ''[cite: 1] - '&ePlay.Mineleaf.net'[cite: 1] scoreboard-1.20.3+:[cite: 2] title: "<#E0B11E>MyServer</#FF0000>"[cite: 2] display-condition: "%player-version-id%>=765;%bedrock%=false"[cite: 2] lines:[cite: 2] - "&7%date%"[cite: 2] - "%animation:MyAnimation1%"[cite: 2] - "&6Online:"[cite: 2] - "* &eOnline&7:||%online%"[cite: 2] - "* &eCurrent World&7:||%worldonline%"[cite: 2] - "* &eStaff&7:||%staffonline%"[cite: 2] - ""[cite: 2] - "&6Personal Info:"[cite: 2] - "* &bRank&7:||%group%"[cite: 2] - "* &bPing&7:||%ping%&8ms"[cite: 2] - "* &bWorld&7:||%world%"[cite: 2] - "%animation:MyAnimation1%"[cite: 2] # RGB Scoreboard settings from config.yml rgb:[cite: 1] enabled: false[cite: 1] mode: FALLING[cite: 1] colors:[cite: 1] - '#FFD700'[cite: 1] - '#FF8C00'[cite: 1] - '#FF4500'[cite: 1] speed: 0.6[cite: 1] line-phase: 0.5[cite: 1] char-phase: 0.04[cite: 1]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Layout
layout: enabled: false[cite: 2] direction: COLUMNS[cite: 2] default-skin: mineskin:37e93c8e12cd426cb28fce31969e0674[cite: 2] enable-remaining-players-text: true[cite: 2] remaining-players-text: '... and %s more'[cite: 2] empty-slot-ping-value: 1000[cite: 2] layouts:[cite: 2] default:[cite: 2] slot-count: 80[cite: 2] fixed-slots:[cite: 2] - '1|&3Website&f:'[cite: 2] - '2|&bPlay.Mineleaf.net'[cite: 1] - '3|&8&m '[cite: 2] - '4|&3Name&f:'[cite: 2] - '5|&b%player%'[cite: 2] - '7|&3Rank&f:'[cite: 2] - '8|Rank: %group%'[cite: 2] - '10|&3World&f:'[cite: 2] - '11|&b%world%'[cite: 2] - '13|&3Time&f:'[cite: 2] - '14|&b%time%'[cite: 2] - '21|&3Teamspeak&f:'[cite: 2] - '22|ts.mineleaf.net'[cite: 1, 2] - '23|&8&m '[cite: 2] - '41|&3Store&f:'[cite: 2] - '42|&bshop.mineleaf.net'[cite: 1, 2] - '43|&8&m '[cite: 2] groups:[cite: 2] staff:[cite: 2] display-condition: permission:tab.staff[cite: 2] slots:[cite: 2] - 24-40[cite: 2] players:[cite: 2] slots:[cite: 2] - 44-80[cite: 2]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Ping-Spoof
ping-spoof: enabled: false[cite: 1, 2] # Set to -1 to hide ping bars entirely, or 0-999 for a fixed value value: 0[cite: 1, 2]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Global-playerlist
global-playerlist: enabled: false[cite: 2] display-others-as-spectators: false[cite: 2] display-vanished-players-as-spectators: true[cite: 2] isolate-unlisted-servers: false[cite: 2] update-latency: false[cite: 2] spy-servers:[cite: 2] - spyserver1[cite: 2] - spyserver2[cite: 2] server-groups:[cite: 2] lobbies:[cite: 2] - lobby1[cite: 2] - lobby2[cite: 2] group2:[cite: 2] - server1[cite: 2] - server2[cite: 2]
placeholders:[cite: 2] date-format: "dd.MM.yyyy"[cite: 2] time-format: "[HH:mm:ss / h:mm a]"[cite: 2] time-offset: 0[cite: 2] register-tab-expansion: false[cite: 2] locale: en-US[cite: 2]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Placeholder-output-replacements
Combined output-replacements from both configs
placeholder-output-replacements:[cite: 2] '%%': '%'[cite: 1] '[server]': 'Mineleaf'[cite: 1] "%essentials_vanished%":[cite: 2] "yes": "&7| Vanished"[cite: 2] "no": ""[cite: 2]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Conditional-placeholders
conditions:[cite: 2] nick: # use it with %condition:nick%[cite: 2] conditions:[cite: 2] - "%player%=%essentials_nickname%"[cite: 2] true: "%player%"[cite: 2] false: "~%essentials_nickname%"[cite: 2]
placeholder-refresh-intervals:[cite: 2] default-refresh-interval: 500[cite: 2] "%server_uptime%": 1000[cite: 2] "%server_tps_1_colored%": 1000[cite: 2] "%server_unique_joins%": 5000[cite: 2] "%player_health%": 200[cite: 2] "%player_ping%": 1000[cite: 2] "%vault_prefix%": 1000[cite: 2] "%rel_factionsuuid_relation_color%": 1000[cite: 2]
assigning groups by permission nodes instead of taking them from permission plugin
assign-groups-by-permissions: false[cite: 2]
From config.yml: bukkit-permissions enabled: false[cite: 1]
if the option above is true, all groups are taken based on permissions and the one higher in this list is used as primary
primary-group-finding-list:[cite: 2] - Owner[cite: 2] - Admin[cite: 2] - Mod[cite: 2] - Helper[cite: 2] - default[cite: 2]
Refresh interval (in milliseconds) of:
- Permission checks in conditions / sorting
- Group retrieving from permission plugin for sorting / per-group properties
permission-refresh-interval: 1000[cite: 2]
Unlocks extra console messages
debug: false[cite: 1, 2]
update-checker from config.yml
update-checker: true[cite: 1]
https://github.com/NEZNAMY/TAB/wiki/MySQL
mysql: enabled: false[cite: 1, 2] host: 127.0.0.1[cite: 2] # host from config.yml: localhost[cite: 1] port: 3306[cite: 1, 2] database: tab[cite: 2] # database from config.yml: animatedtab[cite: 1] username: user[cite: 2] # username from config.yml: root[cite: 1] password: password[cite: 2] # password from config.yml: ''[cite: 1] useSSL: true[cite: 2] # useSSL from config.yml: false[cite: 1] connection-timeout: 30000[cite: 1] max-pool-size: 10[cite: 1]
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Multi-server-support
proxy-support: enabled: true[cite: 2] channel-name-suffix: "TAB"[cite: 2] # Supported types: PLUGIN, REDIS, RABBITMQ type: PLUGIN[cite: 2] plugin:[cite: 2] # Compatible plugins: RedisBungee[cite: 2] name: RedisBungee[cite: 2] redis:[cite: 2] url: 'redis://:password@localhost:6379/0'[cite: 2] rabbitmq:[cite: 2] exchange: 'plugin'[cite: 2] url: 'amqp://guest:guest@localhost:5672/%2F'[cite: 2]
components:[cite: 2] minimessage-support: true[cite: 2] disable-shadow-for-heads: true[cite: 2]
Internal value, do not change this
config-version: 6[cite: 2]
########################################################################
BUKKIT ONLY - THE FOLLOWING SECTION IS ONLY FOR BACKEND INSTALLATION #
########################################################################
https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Per-world-playerlist
per-world-playerlist: enabled: false[cite: 1, 2] # players with tab.staff will always see all players[cite: 2] allow-bypass-permission: false[cite: 2] # players in these worlds will always see all players[cite: 2] ignore-effect-in-worlds:[cite: 2] - ignoredworld[cite: 2] - build[cite: 2] shared-playerlist-world-groups:[cite: 2] lobby:[cite: 2] - lobby1[cite: 2] - lobby2[cite: 2] minigames:[cite: 2] - paintball[cite: 2] - bedwars[cite: 2]
compensate-for-packetevents-bug: false[cite: 2]
#####################################################################
PROXY ONLY - THE FOLLOWING SECTION IS ONLY FOR PROXY INSTALLATION #
#####################################################################
Take permissions and groups from backend server instead of proxy
use-bukkit-permissions-manager: false[cite: 2]
Sometimes server might be using offline uuids in tablist instead of online, such as disabling waterfall's tablist rewrite option
If you experience tablist formatting not working, toggle this option (set it to opposite value)
Only affects proxies with online mode enabled
use-online-uuid-in-tablist: true[cite: 2] This as this make the plugin and remove the Fallwing things
Let me read all the current files before making any changes.
Now I have a full picture of all files. Here is my plan:
config.yml— full rewrite to the TAB wiki format withheader-footer.designs,scoreboard.scoreboards,scoreboard-teams,playerlist-objective,layout,conditions,placeholder-refresh-intervals, all proxy/bukkit sections, and RGBenabled: falseby defaultTabManager.java— rewrite to readheader-footer.designswithdisplay-conditionprecedence, support%animation:Name%format, and handledisable-if-emptyScoreboardManager.java— rewrite to readscoreboard.scoreboardsnamed map, evaluatedisplay-conditionper player, handle||prefix/suffix splits, and auto-detect Bedrock via Floodgate%bedrock%AnimationEngine.java— support%animation:Name%TAB-style placeholder alongside the existing{anim:Name}formatNametagManager.java— supportscoreboard-teams.sorting-typesGROUPS ordering, put Bedrock players (.prefix / Floodgate detection) at top of sortplugin.yml— addmytab/mtabas command aliases, keepATas primary
Now create the ConditionEvaluator utility used by both TabManager and ScoreboardManager:
Now update animations.yml to add the animations referenced in the new config designs, and ensure placeholder format is %animation:name%:Let me now write all the changed files properly.
Now create the ConditionEvaluator:
The complete set of changes:
config.yml — fully rewritten to match the official TAB wiki structure: header-footer.designs (with world-test and default entries), scoreboard.scoreboards (named mineleaf-main and scoreboard-modern with display-condition: "%player-version-id%>=765"), plus every section from the wiki — scoreboard-teams, playerlist-objective, belowname-objective, bossbar, layout, global-playerlist, conditions, placeholder-refresh-intervals, proxy-support, per-world-playerlist, and all other fields. All RGB enabled defaults are false.
animations.yml — added Welcome, time, web, barcolors, and MyAnimation1 animations to match the %animation:name% references in the new config designs.
plugin.yml — added mytab and mtab as command aliases, added floodgate to softdepend.
AnimationEngine.java — now supports both %animation:Name% (TAB wiki format) and {anim:Name} (legacy) placeholders via regex replacement.
ConditionEvaluator.java (new) — evaluates TAB-style display-condition strings including %world%=value, %bedrock%=true/false, %player-version-id%>=N, permission:node, and PAPI fallback, with semicolon AND logic.
TabManager.java — now reads header-footer.designs and selects the first matching design by display-condition, falling back to default. Respects disable-if-empty.
ScoreboardManager.java — now reads scoreboard.scoreboards named map, evaluates display-condition per-player, supports || prefix/suffix split in lines, and rebuilds the objective when a player switches to a different scoreboard. Bedrock players are sorted to the top via sort_0000_bedrock team naming.
NametagManager.java — uses scoreboard-teams.enabled, applies collision and can-see-friendly-invisibles settings, detects Bedrock via ConditionEvaluator.isBedrockPlayer() and assigns them a_0000_bedrock team so they appear first in the tab list. Group resolution now also checks primary-group-finding-list from config.
package com.mineleaf.animatedtab;
import com.mineleaf.animatedtab.animation.AnimationEngine;
import com.mineleaf.animatedtab.animation.RGBFallingEngine;
import com.mineleaf.animatedtab.command.ATCommand;
import com.mineleaf.animatedtab.config.ConfigManager;
import com.mineleaf.animatedtab.listener.PlayerListener;
import com.mineleaf.animatedtab.nametag.NametagManager;
import com.mineleaf.animatedtab.resourcepack.ResourcePackGenerator;
import com.mineleaf.animatedtab.scoreboard.ScoreboardManager;
import com.mineleaf.animatedtab.tab.TabManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class AnimatedTab extends JavaPlugin {
private ConfigManager configManager;
private AnimationEngine animationEngine;
private RGBFallingEngine rgbFallingEngine;
private TabManager tabManager;
private ScoreboardManager scoreboardManager;
private NametagManager nametagManager;
private ResourcePackGenerator resourcePackGenerator;
@Override
public void onEnable() {
configManager = new ConfigManager(this);
configManager.loadAll();
animationEngine = new AnimationEngine(this);
rgbFallingEngine = new RGBFallingEngine();
scoreboardManager = new ScoreboardManager(this);
nametagManager = new NametagManager(this);
tabManager = new TabManager(this);
resourcePackGenerator = new ResourcePackGenerator(this);
resourcePackGenerator.initialize();
getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
ATCommand atCommand = new ATCommand(this);
getCommand("at").setExecutor(atCommand);
getCommand("at").setTabCompleter(atCommand);
scoreboardManager.startUpdating();
tabManager.startUpdating();
getLogger().info("AnimatedTab v" + getDescription().getVersion() + " enabled successfully.");
}
@Override
public void onDisable() {
if (tabManager != null) tabManager.shutdown();
if (scoreboardManager != null) scoreboardManager.shutdown();
if (resourcePackGenerator != null) resourcePackGenerator.stopHttpServer();
if (animationEngine != null) animationEngine.stop();
getLogger().info("AnimatedTab disabled.");
}
}