RA-TaxSystem

A wealth tax plugin for Paper 1.20+ that taxes the part of a balance above a threshold, for both players (Vault) and teams (BetterTeams), with async batching, an inactive skip, and a SQLite tax history.

Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Paper 1.20+


Features

Wealth Tax

  • Personal tax: every player pays a percentage of the balance above a threshold (default 10% above 50,000)
  • Team tax: every team bank is taxed the same way, independently from the personal tax. There is intentionally no exemption for team members
  • Both can be switched on or off, with their own thresholds

Scheduled

  • The tax runs once per real-world day at a set time and timezone (default 00:00, Asia/Jakarta)
  • Players who have not logged in for a number of days (default 7) are skipped entirely, not delayed, so no tax piles up while they are away
  • Staff can force a run at any time

Lag-Friendly

  • Balance scanning and tax math run asynchronously in batches (default 100 players every 2 ticks)
  • Only the actual withdrawals are sent to the main thread, once per batch
  • Balances always come live from Vault and BetterTeams and are never cached

History and Control

  • Every tax is logged in SQLite, with history for players and for teams
  • Players can see their own tax history with /tax mine
  • An exclusion list lets you exempt chosen players
  • Players are told when they are taxed, online or on their next join

Dependencies

PluginRequiredPurpose
VaultYes (softdepend)Player balances. Needs an economy plugin
BetterTeamsNo (softdepend)Team banks, for the team tax

Installation

  1. Place RA-TaxSystem.jar into your plugins/ folder
  2. Make sure Vault and an economy plugin are installed
  3. Restart the server
  4. Edit config.yml and messages.yml, then run /tax reload

File Structure

text
1
plugins/RA-TaxSystem/
├── config.yml       # Rates, thresholds, schedule, performance
├── messages.yml     # All player-facing text
└── taxlog.db        # SQLite tax history and exclusions

Configuration

config.yml

yaml
1
tax:
  reset-time: "00:00"        # 24h, in the timezone below
  timezone: "Asia/Jakarta"
  rate: 10.0                 # percent, applied to the part above the threshold

  personal:
    enabled: true
    threshold: 50000.0

  team:
    enabled: true
    threshold: 50000.0

  skip-inactive:
    enabled: true
    inactive-days: 7

notifications:
  notify-online: true
  notify-on-join: true

performance:
  batch-size: 100
  batch-delay-ticks: 2       # 20 ticks = 1 second

storage:
  file: taxlog.db

Example: with a 10% rate and a 50,000 threshold, a balance of 150,000 is taxed 10,000 (10% of the 100,000 above the threshold).

messages.yml (excerpt)

yaml
1
prefix: "&#11CDA7Tax &8» &7"

tax:
  personal-taxed: "%prefix%You were taxed &f%amount% &7(balance: &f%balance%&7)"
  team-taxed: "%prefix%Your team was taxed &f%amount% &7(team balance: &f%balance%&7)"

Available placeholders: %amount%, %balance%, %rate%, %threshold%, %team%, %player%, %count%, %time%, %date%.


Commands

CommandDescriptionAccess
/tax helpShow the helpEveryone
/tax mineShow your own tax historywealthtax.use
/tax reloadReload config.yml and messages.ymlAdmin
/tax runRun the tax collection nowAdmin
/tax statusShow the next and last run and the current ratesAdmin
/tax history <player>Show a player's tax historyAdmin
/tax history team <teamName>Show a team's tax historyAdmin
/tax exclude add|remove|list [player]Manage the exclusion listAdmin

Permissions

PermissionDefaultDescription
wealthtax.adminopAll admin sub-commands of /tax
wealthtax.usetrueUse /tax mine

License

Developed by RajaAditya — rajaaditya.my.id