Skip to content

Refactor built-in reward implementations into dedicated classes - #286

Merged
BenCodez merged 20 commits into
masterfrom
refactor/builtin-reward-classes
Aug 23, 2026
Merged

Refactor built-in reward implementations into dedicated classes#286
BenCodez merged 20 commits into
masterfrom
refactor/builtin-reward-classes

Conversation

@BenCodez

Copy link
Copy Markdown
Owner

Summary

Extract AdvancedCore's built-in reward and requirement implementations out of RewardHandler into dedicated implementation classes under com.bencodez.advancedcore.rewards.builtin.

The public extension API under api.rewards.injected and api.rewards.injectedrequirement remains in place and is not moved.

Structure

  • rewards/builtin/RewardExp.java owns EXP and EXPLevels built-in forms
  • rewards/builtin/RewardMoney.java owns fixed and ranged money forms
  • dedicated classes for commands, messages, items, sound, potions, titles, boss bars, firework, JavaScript, random/advanced rewards, choices, etc.
  • rewards/builtin/requirements/ contains built-in requirement implementations such as permission, chance, world, server, date, and JavaScript
  • BuiltinRewards and BuiltinRequirements provide central registration

This is intended as a behavior-preserving code-organization refactor; reward configuration paths and public inject API types are kept compatible.

@BenCodez
BenCodez marked this pull request as ready for review August 23, 2026 16:51
@BenCodez
BenCodez merged commit efb0725 into master Aug 23, 2026
4 checks passed
@BenCodez
BenCodez deleted the refactor/builtin-reward-classes branch August 23, 2026 18:24
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