[SPIGOT-7109] WorldBorder setSize with milliseconds Created: 19/Jul/22  Updated: 25/Dec/24  Resolved: 04/Aug/22

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

Type: New Feature Priority: Minor
Reporter: Hüseyin Serhat Han Assignee: Doc
Resolution: Fixed Votes: 0
Labels: None
Environment:

spigot


Version: 1.19
Guidelines Read: Yes

 Description   

setSize method works with seconds and in some situations you might need less than a second lerpings.



 Comments   
Comment by Doc [ 23/Jul/22 ]

Created a PR for make a few improvements and handle this feature.

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/773/overview

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/1087/overview

Comment by md_5 [ 21/Jul/22 ]

My inclination would be to implement this like Thread.sleep does with higher precision

    /**
     * Sets the border to a square region with the specified side length in blocks.
     *
     * @param newSize The new side length of the border.
     * @param seconds The time in seconds in which the border grows or shrinks from the previous size to that being set.
     * @param millis {@code 0-999999} milliseconds of time in which the border grows or shrinks from the previous size to that being set.
     */
    public void setSize(double newSize, long seconds, long millis);
Generated at Sat Dec 13 20:50:11 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.