RecycleProgress

Pure reward-threshold logic for /recycle, extracted from the command so it can be unit-tested without a server. Regression guard: the old code tracked progress in scoreboard objectives the plugin never created, so a reward was never granted; this makes the "reward every ITEMS_PER_REWARD" rule explicit and testable.

Types

Link copied to clipboard
data class Result(val stored: Int, val rewarded: Boolean, val remaining: Int)

Properties

Link copied to clipboard
const val ITEMS_PER_REWARD: Int = 64

How many recycles earn one reward.

Functions

Link copied to clipboard

Advances the stored progress by one recycle.