Skip to content

Harden global revive scheduler execution#47

Merged
Nergly merged 1 commit intomasterfrom
codex/fix-player-revive-not-triggering-at-time
Apr 24, 2026
Merged

Harden global revive scheduler execution#47
Nergly merged 1 commit intomasterfrom
codex/fix-player-revive-not-triggering-at-time

Conversation

@Nergly
Copy link
Copy Markdown
Owner

@Nergly Nergly commented Apr 24, 2026

Motivation

  • The global scheduled "GlobalReviveUnDeathBan" job could silently miss its configured TimeOfDay run or stop due to uncaught exceptions and async scheduling fragility, making global revives/un-deathbans unreliable.

Description

  • Run the scheduler polling task on the main server thread by switching from runTaskTimerAsynchronously to runTaskTimer to avoid async timing fragility.
  • Add informational logs at startup, on execution start, and after completion to make scheduled runs and the next run timestamp observable through the plugin logger.
  • Wrap the scheduler run() body in a try/catch and log SEVERE on unexpected exceptions to prevent silent task death and aid debugging.
  • Changes made in src/com/backtobedrock/augmentedhardcore/runnables/GlobalReviveUnDeathBan.java.

Testing

  • Ran the project compile step with mvn -q -DskipTests compile which completed successfully.
  • Executed unit tests with mvn -q test during validation and no test failures were reported.

Codex Task

@Nergly Nergly merged commit 99aa459 into master Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant