Skip to content

Commit

Permalink
Update WebConsole.java
Browse files Browse the repository at this point in the history
TPSFIX
  • Loading branch information
LOLYAYDEV authored Jul 26, 2024
1 parent 2881e93 commit 264e621
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/es/mesacarlos/webconsole/WebConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManagerFactory;

import es.mesacarlos.webconsole.util.TpsTracker;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.Filter;
import org.bukkit.Bukkit;
Expand All @@ -28,6 +29,7 @@ public class WebConsole extends JavaPlugin {

@Override
public void onEnable() {
Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new TpsTracker(), 100L, 1L);
//Change language to user-specified language.
Internationalization.setCurrentLocale(ConfigManager.getInstance().getLanguage());

Expand Down Expand Up @@ -100,4 +102,4 @@ public void run() {
public WSServer getWSServer() {
return server;
}
}
}

0 comments on commit 264e621

Please sign in to comment.