diff --git a/src/main/java/net/william278/velocitab/config/Settings.java b/src/main/java/net/william278/velocitab/config/Settings.java index 1f13bbf..02dafd9 100644 --- a/src/main/java/net/william278/velocitab/config/Settings.java +++ b/src/main/java/net/william278/velocitab/config/Settings.java @@ -111,7 +111,8 @@ public class Settings { @Getter @YamlKey("update_rate") @YamlComment("How often in milliseconds to periodically update the TAB list, including header and footer, for all users.\n" + - "If set to 0, TAB will be updated on player join/leave instead. (1s = 1000ms)") + "If set to 0, TAB will be updated on player join/leave instead. (1s = 1000ms)\n" + + "The minimal update rate is 200ms, anything lower will automatically be set to 200ms.") private int updateRate = 0; public Settings(@NotNull Velocitab plugin) { diff --git a/src/main/java/net/william278/velocitab/tab/PlayerTabList.java b/src/main/java/net/william278/velocitab/tab/PlayerTabList.java index 9a8f18a..6ddebb3 100644 --- a/src/main/java/net/william278/velocitab/tab/PlayerTabList.java +++ b/src/main/java/net/william278/velocitab/tab/PlayerTabList.java @@ -224,7 +224,7 @@ public class PlayerTabList { player.sendHeaderAndFooter(this); }); }) - .repeat(updateRate, TimeUnit.MILLISECONDS) + .repeat(Math.max(200, updateRate), TimeUnit.MILLISECONDS) .schedule(); }