first commit
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,132 @@
|
||||
tax:
|
||||
enabled: true
|
||||
|
||||
# How often offline players are taxed, in minutes.
|
||||
# 1440 = once per day
|
||||
interval-minutes: 1440
|
||||
|
||||
# Percentage of current balance removed each tax cycle.
|
||||
# 5.0 = 5%
|
||||
rate-percent: 5.0
|
||||
|
||||
# Minimum tax amount if balance is above 0
|
||||
minimum-tax: 1.0
|
||||
|
||||
# Maximum debt allowed. Once a player reaches this negative value,
|
||||
# no more debt is added.
|
||||
max-debt: -1000000.0
|
||||
|
||||
# Players offline at least this many minutes before they can be taxed
|
||||
offline-minutes-required: 1440
|
||||
|
||||
# If true, tax all offline players on plugin startup after delay
|
||||
startup-tax-check: false
|
||||
|
||||
# Delay in seconds before startup tax check runs
|
||||
startup-tax-delay-seconds: 30
|
||||
|
||||
# If true, players with exempt permission bypass taxes
|
||||
permission-exempt: true
|
||||
|
||||
# If true, OP players bypass taxes
|
||||
op-exempt: true
|
||||
|
||||
# If true, tax amount is rounded to 2 decimals
|
||||
round-to-cents: true
|
||||
|
||||
announcement:
|
||||
enabled: true
|
||||
|
||||
# Broadcast to online players with dirttaxes.notify
|
||||
notify-online-staff: true
|
||||
|
||||
# Also send to console
|
||||
log-to-console: true
|
||||
|
||||
# Message for staff/console announcements
|
||||
staff-message: "&6IRS &8- &eTook &c$%amount% &efrom &b%player%&e. New balance: &a$%new_balance%"
|
||||
|
||||
# Optional message sent to the player next time they join
|
||||
store-offline-message: true
|
||||
join-message: "&6IRS &8- &eTook &c$%amount% &efrom your account while you were away. New balance: &a$%new_balance%"
|
||||
|
||||
debt:
|
||||
enabled: true
|
||||
|
||||
# If player balance is 0 or below, add this flat debt per cycle
|
||||
flat-debt-per-cycle: 500.0
|
||||
|
||||
# Funny extra interest percent applied to negative balances
|
||||
# Example: -1000 with 2.5% becomes -1025 before flat debt
|
||||
negative-interest-percent: 2.5
|
||||
|
||||
# IMPORTANT:
|
||||
# When true, negative/debt taxation uses a configurable console command
|
||||
# instead of Vault withdrawPlayer().
|
||||
#
|
||||
# Use this for economies like CMI where Vault may not push balances below 0.
|
||||
use-command-for-debt: true
|
||||
|
||||
# Console command used to apply debt.
|
||||
# Placeholders:
|
||||
# %player% = player name
|
||||
# %amount% = amount being added as debt this cycle
|
||||
# %old_balance% = previous balance
|
||||
# %new_balance% = expected new balance after tax
|
||||
#
|
||||
# Examples you can try on your server:
|
||||
# command: "cmi money take %player% %amount%"
|
||||
# command: "money take %player% %amount%"
|
||||
# command: "cmi money set %player% %new_balance%"
|
||||
command: "cmi money set %player% %new_balance%"
|
||||
|
||||
# If true, announce/log if command mode fails to actually change balance
|
||||
warn-if-command-fails: true
|
||||
|
||||
# Broadcast when someone falls deeper into debt
|
||||
announce-debt: true
|
||||
debt-message: "&4IRS &8- &c%player% is now drowning in debt. Balance: $%new_balance%"
|
||||
|
||||
fun:
|
||||
enabled: true
|
||||
|
||||
# Send a random funny IRS line to the player on join if they were taxed offline
|
||||
send-funny-line-to-player: true
|
||||
|
||||
# Also include funny line in staff alerts
|
||||
include-funny-line-in-staff-alerts: true
|
||||
|
||||
random-funny-lines: true
|
||||
funny-lines:
|
||||
- "&7[IRS] Asset seizure successful."
|
||||
- "&7[IRS] Another loyal citizen has contributed."
|
||||
- "&7[IRS] Freedom isn’t free."
|
||||
- "&7[IRS] Thank you for your involuntary donation."
|
||||
- "&7[IRS] The tax goblin smiles."
|
||||
- "&7[IRS] Audit complete. Wallet lighter."
|
||||
- "&7[IRS] Your wallet has been selected for routine maintenance."
|
||||
- "&7[IRS] We noticed you looked too comfortable."
|
||||
- "&7[IRS] This concludes your surprise patriotism fee."
|
||||
- "&7[IRS] You were fined for excessive wealth retention."
|
||||
|
||||
storage:
|
||||
# Save pending join notifications to disk every tax cycle
|
||||
save-pending-messages: true
|
||||
|
||||
messages:
|
||||
prefix: "&6[DirtTaxes] &r"
|
||||
no-permission: "&cYou do not have permission."
|
||||
reloaded: "&aDirtTaxes reloaded."
|
||||
usage: "&e/dirttaxes reload|info|setrate <percent>|setmaxdebt <negative>|setinterval <minutes>|forcetax [player]"
|
||||
info: "&eTax rate: &f%rate%% &8| &eInterval: &f%interval%m &8| &eMax debt: &f$%maxdebt%"
|
||||
set-rate-success: "&aTax rate set to &f%rate%%"
|
||||
set-max-debt-success: "&aMax debt set to &f$%maxdebt%"
|
||||
set-interval-success: "&aTax interval set to &f%interval% minutes"
|
||||
force-tax-all-success: "&aForced tax cycle for all offline players."
|
||||
force-tax-player-success: "&aForced tax for &f%player%"
|
||||
player-not-found: "&cPlayer not found."
|
||||
invalid-number: "&cInvalid number."
|
||||
max-debt-must-be-negative: "&cMax debt must be 0 or less."
|
||||
interval-must-be-positive: "&cInterval must be greater than 0."
|
||||
rate-must-be-nonnegative: "&cTax rate must be 0 or greater."
|
||||
debt-command-failed: "&cDebt command did not appear to change %player%'s balance."
|
||||
@@ -0,0 +1,29 @@
|
||||
name: DirtTaxes
|
||||
version: 1.0.0
|
||||
main: com.bitnix.dirttaxes.DirtTaxesPlugin
|
||||
api-version: '1.21'
|
||||
depend: [Vault]
|
||||
|
||||
commands:
|
||||
dirttaxes:
|
||||
description: Main DirtTaxes command
|
||||
usage: /dirttaxes
|
||||
aliases: [taxes, irs]
|
||||
|
||||
permissions:
|
||||
dirttaxes.use:
|
||||
default: op
|
||||
dirttaxes.reload:
|
||||
default: op
|
||||
dirttaxes.setrate:
|
||||
default: op
|
||||
dirttaxes.setmaxdebt:
|
||||
default: op
|
||||
dirttaxes.setinterval:
|
||||
default: op
|
||||
dirttaxes.forcetax:
|
||||
default: op
|
||||
dirttaxes.exempt:
|
||||
default: false
|
||||
dirttaxes.notify:
|
||||
default: op
|
||||
@@ -0,0 +1,5 @@
|
||||
#Generated by Maven
|
||||
#Sat Jun 20 11:12:19 EDT 2026
|
||||
artifactId=DirtTaxes
|
||||
groupId=com.bitnix
|
||||
version=1.0.0
|
||||
@@ -0,0 +1,2 @@
|
||||
com/bitnix/dirttaxes/TaxJoinListener.class
|
||||
com/bitnix/dirttaxes/DirtTaxesPlugin.class
|
||||
@@ -0,0 +1,2 @@
|
||||
/home/bitnix/Desktop/DirtTaxes/src/main/java/com/bitnix/dirttaxes/DirtTaxesPlugin.java
|
||||
/home/bitnix/Desktop/DirtTaxes/src/main/java/com/bitnix/dirttaxes/TaxJoinListener.java
|
||||
Reference in New Issue
Block a user