diff --git a/src/main/java/me/freezy/plugins/papermc/blazesmp/tasks/TabListTimer.java b/src/main/java/me/freezy/plugins/papermc/blazesmp/tasks/TabListTimer.java index 73bce71..7e0fedf 100644 --- a/src/main/java/me/freezy/plugins/papermc/blazesmp/tasks/TabListTimer.java +++ b/src/main/java/me/freezy/plugins/papermc/blazesmp/tasks/TabListTimer.java @@ -1,5 +1,6 @@ package me.freezy.plugins.papermc.blazesmp.tasks; +import me.freezy.plugins.papermc.blazesmp.BlazeSMP; import me.freezy.plugins.papermc.blazesmp.module.manager.L4M4; import net.kyori.adventure.text.minimessage.MiniMessage; import org.bukkit.Bukkit; @@ -51,7 +52,7 @@ public class TabListTimer extends BukkitRunnable { index++; - if (index >= Math.max(header.size(), footer.size())) { + if (index >= BlazeSMP.getInstance().getConfiguration().getInt("tab_update_interval", 5)) { index = 0; } } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index bafae36..84eefb0 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,3 +1,4 @@ op-prefix: '[Team] ' player-prefix: '[Player] ' -discord-report-webhook: 'https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz' \ No newline at end of file +discord-report-webhook: 'https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz' +tab_update_interval: 5 #Seconds \ No newline at end of file