Skip to content

Show earnings and tax in one chat line - #41

Merged
ryanbarlow97 merged 1 commit into
mainfrom
feat/earned-after-tax
Oct 15, 2026
Merged

ryanbarlow97 merged 1 commit into
mainfrom
feat/earned-after-tax

Conversation

@ryanbarlow97

Copy link
Copy Markdown
Contributor

A taxed payment showed two chat lines, "+8.75d" and "(1.25 in tax)". Players could read that as 1.25 being taken again from the 8.75. The 8.75 is what reached their account, and the tax was already withheld.

Taxed payments now show one line: +8.75d (after 1.25d tax), with the tax part in grey. Untaxed payments still show "+8.75d". The new key is money.earned-taxed. Live messages.yml files pick it up from the bundled defaults, so no server edit is needed.

MoneyManager.tellEarned(CommandSender, netCents, taxCents) is public so SimpleFactions' gold bar bank deposits can send the same line (SimpleFactions PR to follow, pinned to this release). money.tax is unchanged because Games still uses it for wager tax.

Tests: the pickup tests now expect the single taxed line and no separate money.tax line. mvn clean verify passes.

🤖 Generated with Claude Code

A taxed payment showed "+8.75d" and "(1.25 in tax)" on separate lines, which
read as if the tax was taken again. Send one line instead, "+8.75d (after
1.25d tax)", from a public MoneyManager.tellEarned that SimpleFactions can
share. money.tax stays for Games' wager tax.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the size:S 10-29 effective changed lines (tests excluded in mixed PRs). label Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6edb50bc-3d51-4594-9a16-19ee0402971f
📥 Commits

Reviewing files that changed from the base of the PR and between b4771ad and 349c923.

📒 Files selected for processing: 3
  • src/main/java/net/tfminecraft/denareconomy/managers/MoneyManager.java
  • src/main/resources/messages.yml
  • src/test/java/net/tfminecraft/denareconomy/managers/MoneyManagerTest.java
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ryanbarlow97

Copy link
Copy Markdown
Contributor Author

Reviewed by GPT-6.1-Sol (xhigh): no findings, VERDICT: OK. Merging.

@ryanbarlow97
ryanbarlow97 merged commit 2f72b25 into main Oct 15, 2026
2 of 3 checks passed
@ryanbarlow97
ryanbarlow97 deleted the feat/earned-after-tax branch October 15, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 effective changed lines (tests excluded in mixed PRs).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant