StoreStats already works on Java 16 & Minecraft 1.17, no need to update.
Unify getPayment/getTopPayment into one single method instead of checking the timeframe and use a different method for each type, now it'll just use one and stop pointless checking.