Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
TabModule: fix not scheduled ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 14, 2023
1 parent 4a09a96 commit 917c764
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ public void init() {
register();

actionManager.add(new TabListener(this));
actionManager.add(new TabTicker(this));

if (config.getBoolean("default.server.tab.player-ping.enable")) {
if (config.getBoolean("default." + this + ".update.enable")) {
actionManager.add(new TabTicker(this));
}

if (config.getBoolean("default." + this + ".player-ping.enable")) {
actionManager.add(new TabPlayerPingTicker(this));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ public TabTicker(FModule module) {

@Override
public void init() {
if (!config.getBoolean("default." + getModule() + ".update.enable")) return;

super.period = config.getInt("default." + getModule() + ".update.rate");
runTaskTimer();
}
Expand Down

0 comments on commit 917c764

Please sign in to comment.