Changed TabListTimer intervall system

This commit is contained in:
DaTTV 2025-02-20 22:13:48 +01:00
parent 3c40a33714
commit 56d5f2d6a4
2 changed files with 4 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -1,3 +1,4 @@
op-prefix: '<color:dark_gray>[</color><gradient:#ffa600:#ffb700><b>Team</b></gradient><color:dark_gray>]</color> '
player-prefix: '<color:dark_gray>[</color><gradient:#747e80:#828d8f><b>Player</b></gradient><color:dark_gray>]</color> '
discord-report-webhook: 'https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz'
discord-report-webhook: 'https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz'
tab_update_interval: 5 #Seconds