[SPIGOT-7549] ServerTickManager#setTickRate(f) incorrect Precondition Created: 18/Dec/23  Updated: 25/Dec/24  Resolved: 18/Dec/23

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Shane Bee Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Version: n/a
Plugin: Just my Skript addon (SkBee) and Skript
Guidelines Read: Yes

 Description   

I noticed in here:
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/3dda99c06f7fe23f5f9713dbd061b9598744e223#src%2Fmain%2Fjava%2Forg%2Fbukkit%2Fcraftbukkit%2FCraftServerTickManager.java?t=44

`Preconditions.checkArgument(tickRate > 1 && tickRate < 10_000, "The given tick rate must not be less than one");`

1) this should be either `> 0` or `>= 1` since 1 is acceptable
2) this should be either `< 10001` or `<= 10000` since 10000 is acceptable
3) The message should say "The given tick rate must be between 1 and 10,000"

This does throw an error when using 1 and 10,000, but I don't have code to provide as a test as it's part of my Skript addon Im working on.



 Comments   
Comment by md_5 [ 18/Dec/23 ]

No problem

Comment by Shane Bee [ 18/Dec/23 ]

thank you for the super quick fix

Generated at Sat Dec 13 13:39:12 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.