TaxPro

插件

· 作者 AbhinavSanthosh

一款高性能、完全无卡顿的 Spigot/Paper 服务器经济与管理插件。专为支持大规模玩家群体而设计,无缝集成 GriefPrevention 和 Vault。

0 本站下载 0 关注 更新于 6 个月前

最新 1.0.0 · 26.1.1 · Bukkit / Paper

一键开服(送7天)

? TaxPro

支持的 Java 版本: Java 17+
支持的 Minecraft 版本: 1.13 - 1.20+

一款高性能、完全无卡顿的 Spigot/Paper 服务器经济与管理插件。专为处理大规模玩家群体而构建,无缝集成 GriefPrevention 和 Vault。


? 目录

  1. ✨ 功能
  2. ? 命令
  3. ? 权限
  4. ?️ 占位符
  5. ⚙️ 默认配置 (config.yml)
  6. ? 默认消息 (messages.yml)
  7. ? 安装
  8. ?️ 构建

✨ 功能

  • ? 累进财富税:自动根据配置的分级税率执行基于边际值的财富税扣除。
  • ? 土地税:对玩家当前活跃或未使用的 GriefPrevention 领地地块征税。包含一个复杂的扣分系统,会自动解除废弃领地的所有权。
  • ? 死亡惩罚:高度可配置的钱包余额百分比扣除,支持世界豁免(例如在 PvP 竞技场中绕过)。
  • ? 命令费用:对玩家运行命令收取游戏内货币费用。支持自定义分组费用以及针对单个费用的细粒度覆盖,并带有动态绕过权限。
  • ⏱️ 动态数据持久化:所有计时器均使用持久化的 Unix 时间戳。即使服务器崩溃或离线一周,它也能完美追踪下一次缴税的确切时间!
  • ⚡ 异步优化:实现后台批量处理。TaxPro 在独立线程上安全地执行繁重计算,保证绝不会导致服务器 TPS 下降。

? 命令

命令 描述 所需权限
/tax help 显示插件帮助菜单 tax.admin
/tax stats 查看您的个人预估税款、到期日期及扣分记录 tax.command.stats
/tax forcewealth 强制触发财富税周期并重置计时器 tax.admin
/tax forceland 强制触发每日土地税周期并重置计时器 tax.admin
/tax reload 重新加载所有配置和消息文件 tax.admin

? 权限

权限节点 描述 默认值
tax.admin 访问管理命令 OP
tax.command.stats 访问查看个人统计信息 True
tax.exempt.wealth 豁免用户的财富税 False
tax.exempt.land 豁免用户的土地税 False
tax.exempt.deathpenalty 豁免用户死亡时掉落金钱 False
tax.exempt.commandfees 所有命令费用的主绕过权限 False
tax.exempt.commandfees.<group> 特定命令费用分组的细粒度绕过权限 False

?️ 占位符

(需要 PlaceholderAPI)

占位符 返回值
%taxpro_wealth_projected% 预估财富税成本(例如 $150.00 或 Exempt ($0.00))
%taxpro_land_projected% 基于当前领地的预估土地税成本
%taxpro_strikes% 当前的土地税扣分记录数
%taxpro_strikes_max% 服务器配置的最大扣分记录数

⚙️ 默认配置 (config.yml)

# ==========================================
#        TaxPro - 主配置文件
# ==========================================

General:
  Prefix: "&b&lTaxPro &7» &f"
  Debug-Mode: false
  # 启用将税收扣除和支付记录到 taxes.log
  Log-Transactions: true

Integrations:
  # 需要 Vault 和有效的经济提供商(例如 EssentialsX, CMI)
  Vault-Enabled: true
  # 需要 GriefPrevention
  GriefPrevention-Enabled: true

Wealth-Tax:
  Enabled: true
  # 是否根据其频率自动运行?设置为 false 以仅允许手动 /tax forcewealth
  Auto-Run: true
  # 频率(小时)(168 = 1 周)
  Frequency-Hours: 168
  Brackets:
    # 边际税制:仅对处于该区间内的金额征税
    Tier1:
      Min: 0
      Max: 25000
      Rate: 0.0
      Base-Fee: 0.0
    Tier2:
      Min: 25001
      Max: 100000
      Rate: 0.02
      Base-Fee: 500.0
    Tier3:
      Min: 100001
      Max: 500000
      Rate: 0.05
      Base-Fee: 5000.0
    Tier4:
      Min: 500001
      Max: 2000000
      Rate: 0.08
      Base-Fee: 40000.0
    Tier5:
      Min: 2000001
      Max: -1 # -1 代表无穷大
      Rate: 0.10
      Base-Fee: 200000.0

Land-Tax:
  Enabled: true
  # 是否根据其频率自动运行?设置为 false 以仅允许手动 /tax forceland
  Auto-Run: true
  # 频率(小时)(24 = 1 天)
  Frequency-Hours: 24
  cost-Per-Claim-Block: 0.01
  # Tax-Method 可以是:
  # 'USED' (仅对当前物理放置/拥有的地块)
  # 'REMAINING' (在其池中尚未物理拥有的剩余地块)
  # 'TOTAL' (无条件地对其整个地块池:已用 + 剩余合并计算)
  Tax-Method: "USED"
  Penalty-System:
    # 采取行动前的最大扣分次数
    Max-Strikes: 2
    # 达到最大扣分时的行动:'UNCLAIM_OLDEST', 'UNCLAIM_ALL', 或 'CUSTOM_COMMAND'
    Punishment: "CUSTOM_COMMAND"
    # 如果 Punishment 设置为 CUSTOM_COMMAND,则从控制台分派的命令
    Custom-Command: "cmi jail %player% 1h not paying taxes"

Death-Penalty:
  Enabled: true
  # 死亡时损失的当前钱包余额百分比
  Wallet-Percentage: 0.01
  # 应用惩罚所需的最低余额(保护新玩家)
  Exempt-Below: 1000.0
  # 单次死亡可能损失的最大金额(设置为 -1 表示无上限)
  Max-Penalty: -1
  # 不适用死亡惩罚的世界列表
  Exempt-Worlds:
    - "spawn"

Command-Fees:
  Enabled: true
  # Players only receive a message if they have insufficient funds.
  Exempt-Below: 500.0
  
  # Grouped prices: Apply the same fee to a list of commands
  Groups:
    Teleportation:
      Price: 25.0
      Commands:
        - "tpa %" # % represents wildcard
        - "tpaccept"
        - "home"
        
  # Individual prices: Overrides group prices if a command appears in both
  Individual:
    "ec": 50.0
    "feed": 15.0
    "repair": 500.0


? Default Messages (messages.yml)

Wealth-Tax:
  Broadcast-Start: "%prefix%&eThe weekly Wealth Tax is now being processed..."
  Broadcast-End: "%prefix%&aWealth Tax collection complete. Thank you for supporting the economy!"
  Player-Receipt: "%prefix%&7The Taxman has collected &c$%amount% &7based on your wealth bracket. New Balance: &a$%balance%. &7Run [/tax stats] for more information."
  Exempt: "%prefix%&a[Tax] &7Your wealth falls under the taxation threshold. You are exempt from the Wealth Tax this week."

Land-Tax:
  Broadcast-Start: "%prefix%&bThe daily Land Tax is now being processed..."
  Broadcast-End: "%prefix%&aLand Tax collection complete. All properties evaluated! test"
  Player-Receipt: "%prefix%&7Paid &c$%amount% &7upkeep to taxman for &b%blocks% &7claim blocks. New Balance: &a$%balance%. &7Run [/tax stats] for more information."
  Strike-Warning: "%prefix%&e[Warning] &cYou had insufficient funds to pay your Land Tax! &7Strike: &c%strikes%/2&7. Fund your account to avoid claim deletion!"
  Strike-Action: "%prefix%&4[ALERT] &cYou failed to pay your Land Tax for multiple days."

Death-Penalty:
  Death-Message: "%prefix%&8[&4Death&8] &7The Styx toll has been collected. You lost &c$%amount% &7from your wallet."

Command-Fees:
  Insufficient-Funds: "&cYou need $%amount% to use this command. Your balance: $%balance%"

Errors:
  No-Permission: "&cYou do not have permission to do this."
  Vault-Error: "&4Critical Error: Vault integration failed. Please contact an administrator."

Stats:
  Player-Stats:
    - "&8&m--------&r &eYour Tax Stats &8&m--------"
    - "&eProjected Wealth Tax: &c-$%wealth_tax_amount% &7(Due in: %wealth_time_remaining%)"
    - "&eProjected Land Tax: &c-$%land_tax_amount% &7(Due in: %land_time_remaining%)"
    - "&cActive Penalties: %strikes% Strike(s)"
    - "&8&m-----------------------------"

  Tax-Exempt-Format: "&aExempt ($0.00)"

? Installation

  1. Drop the compiled TaxPro-1.0-SNAPSHOT.jar into your server's /plugins folder.
  2. Ensure you have Vault installed along with an economy provider (like EssentialsX or CMI).
  3. Optionally, install GriefPrevention to utilize the Land Tax feature.
  4. Restart your server.

?️ Building

  1. Download the source code from Github.
  2. Compile the plugin using Maven:
mvn clean package

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源