Skip to content

Commit

Permalink
[BungeeCord & Velocity] Make compatibility error message more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Feb 8, 2025
1 parent 2fd29b2 commit 4d4e0a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ public void onEnable() {
if (ReflectionUtils.classExists("net.md_5.bungee.protocol.packet.Team$NameTagVisibility")) {
TAB.create(new BungeePlatform(this));
} else {
getLogger().warning("§c====================================================================================================");
getLogger().warning("§cThe plugin requires BungeeCord build #1899 " +
"(released on February 1st, 2025) and up (or an equivalent fork) to work. If you are using a fork that did not" +
" update to the new BungeeCord version yet, stay on TAB v5.0.5, which supports older builds.");
getLogger().warning("§c====================================================================================================");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public class VelocityTAB {
@Subscribe
public void onProxyInitialization(@Nullable ProxyInitializeEvent event) {
if (!ReflectionUtils.methodExists(TabListEntry.class, "setListOrder", int.class)) {
logger.warn("====================================================================================================");
logger.warn("The plugin requires Velocity build #450 (released on November 10th, 2024) and up to work.");
logger.warn("====================================================================================================");
return;
}
TAB.create(new VelocityPlatform(this));
Expand Down

0 comments on commit 4d4e0a9

Please sign in to comment.