CJCrafter / CJCrafter/FoliaScheduler

Proper TimeUnit support for Bukkit tasks

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Java
Stars
13
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Bukkit doesn't support `TimeUnit` out of the box, so we currently convert the time into ticks, and go from there. Turns out, we can use [`TimerTask`](https://docs.oracle.com/javase/8/docs/api/java/util/TimerTask.html) to schedule repeating tasks async, but it might not integrate very nicely...

More investigation is required.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the library currently converts TimeUnit values into Bukkit ticks for scheduled tasks. Investigate whether TimerTask can provide repeating asynchronous scheduling without harming integration, and consider the work complete when proper TimeUnit support is defined and the scheduling approach is confirmed to integrate cleanly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.