RA-TaxSystem
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
| Plugin | Required | Purpose |
|---|---|---|
| Vault | Yes (softdepend) | Player balances. Needs an economy plugin |
| BetterTeams | No (softdepend) | Team banks, for the team tax |
Installation
- Place
RA-TaxSystem.jarinto yourplugins/folder - Make sure Vault and an economy plugin are installed
- Restart the server
- Edit
config.ymlandmessages.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: "CDA7Tax &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
| Command | Description | Access |
|---|---|---|
/tax help | Show the help | Everyone |
/tax mine | Show your own tax history | wealthtax.use |
/tax reload | Reload config.yml and messages.yml | Admin |
/tax run | Run the tax collection now | Admin |
/tax status | Show the next and last run and the current rates | Admin |
/tax history <player> | Show a player's tax history | Admin |
/tax history team <teamName> | Show a team's tax history | Admin |
/tax exclude add|remove|list [player] | Manage the exclusion list | Admin |
Permissions
| Permission | Default | Description |
|---|---|---|
wealthtax.admin | op | All admin sub-commands of /tax |
wealthtax.use | true | Use /tax mine |
License
Developed by RajaAditya — rajaaditya.my.id