Skip to content

refactor: optimize core utilities (Scheduler, logging, migration)#273

Closed
Alexteens24 wants to merge 2 commits into
OpenVdra:mainfrom
Alexteens24:refactor/core-utilities-optimization
Closed

refactor: optimize core utilities (Scheduler, logging, migration)#273
Alexteens24 wants to merge 2 commits into
OpenVdra:mainfrom
Alexteens24:refactor/core-utilities-optimization

Conversation

@Alexteens24

@Alexteens24 Alexteens24 commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Refactor Scheduler with a Strategy Pattern (BukkitSchedulerImpl / FoliaSchedulerImpl), explicit Scheduler.init() in onEnable, and preserved Folia fallbacks plus full public API compatibility.
  • Fix logging event filtering via LoggingConfig.shouldLogEvent() (correct semantics) and optimize SpawnerActionLogger with thread-safe file I/O, hybrid size tracking, batch draining, and async rotation only when needed.
  • Modernize SpawnerDataConverter for Paper 1.21.11 using Damageable, Registry lookups with legacy fallbacks, and ItemStackSerializer.isDestructibleItem() for consistent inventory migration output.

Alexteens24 and others added 2 commits June 21, 2026 10:47
Introduce a Strategy Pattern for Folia/Paper scheduling with explicit init,
fix logging event semantics and thread-safe file I/O, and modernize legacy
migration code to use Damageable and Registry APIs on Paper 1.21.11.

Co-authored-by: Cursor <[email protected]>
Always route delayed Folia tasks through runDelayed with foliaDelay()
instead of running immediately when delayTicks <= 0, preserving the
original production behavior.

Co-authored-by: Cursor <[email protected]>
@Alexteens24

Copy link
Copy Markdown
Contributor Author

Closing in favor of a smaller follow-up PR with only the shouldLogEvent() naming/semantics fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant