Skip to content

Commit

Permalink
Allow tablist resize without enabled tablist (#1253)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Herrera <[email protected]>
  • Loading branch information
Pablete1234 authored Oct 9, 2023
1 parent a70be8e commit b550217
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/main/java/tc/oc/pgm/PGMPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ public void onEnable() {

if (config.showTabList()) {
matchTabManager = new MatchTabManager(this);
}

if (config.resizeTabList()) {
if (this.getServer().getPluginManager().isPluginEnabled("ProtocolLib")) {
TablistResizer.registerAdapter(this);
} else {
logger.warning("ProtocolLib is required when 'ui.resize' is enabled");
}
if (config.resizeTabList()) {
if (this.getServer().getPluginManager().isPluginEnabled("ProtocolLib")) {
TablistResizer.registerAdapter(this);
} else {
logger.warning("ProtocolLib is required when 'ui.resize' is enabled");
}
}

Expand Down

0 comments on commit b550217

Please sign in to comment.