SmartEconomy

插件

· 作者 Viirless

轻量、现代且灵活的经济学插件

0 本站下载 0 关注 更新于 1 年前

最新 1.0.0 · 1.21.8 · Paper / Purpur

一键开服(送7天)

SmartEconomy — 轻量、现代且灵活的货币插件

要求:

SmartEconomy 是一款快速、轻量且易于使用的 Minecraft 经济插件,支持 Vault 和 PlaceholderAPI。 无论你是想要一个简单的服务器经济系统,还是为更高级的商店和奖励系统奠定基础,SmartEconomy 都能为你提供所需工具,且无需不必要的臃肿。


✨ 特性

  • ? Vault 支持 — 与任何接入 Vault 的插件(如商店、职业等)兼容。
  • ? PlaceholderAPI 支持 — 使用 %smarteconomy_balance%、%smarteconomy_balance_formatted%、%smarteconomy_balance_short% 等占位符。
  • ? 每日奖励 — 通过冷却时间机制给予玩家自动的每日奖金。
  • ? 玩家间转账 — 玩家可以安全地向彼此发送金钱。
  • ? 余额排行榜 — 通过 /balancetop 展示最富有的玩家。
  • ? 管理员控制 — 轻松给予、扣除或设置玩家余额。
  • ? 灵活存储 — 可选择 YAML 或 MySQL 存储方式。
  • ⚡ 轻量且高效 — 经过优化,即使在繁忙的服务器上也能高效运行。
  • ? 配置文件自动更新 — 新增的配置项会自动添加,而不会覆盖你的自定义设置。

? 命令

命令 别名 描述
/balance /bal, /money 显示当前余额
/pay <player> <amount> — 向其他玩家发送金钱
/balancetop /baltop, /moneytop 显示最富有的玩家
/daily — 领取你的每日奖励
/economy <give|take|set|reload> [player] [amount] /eco 经济管理命令

? 权限

权限 默认值 描述
smarteconomy.balance true 允许查看余额
smarteconomy.pay true 允许发送金钱
smarteconomy.daily true 允许领取每日奖励
smarteconomy.balancetop true 允许查看余额排行榜
smarteconomy.admin op 允许使用经济管理命令

⚙ 配置示例

隐藏内容
# SmartEconomy Configuration
Config-Version: 1

# Economy Settings
economy:
  starting-balance: 100.0
  currency-symbol: "$"
  daily-reward: 50.0
  daily-cooldown-hours: 24
  daily-enabled: true # 设置为 false 以禁用每日奖励

# Data Storage Settings
storage:
  type: "yaml" # yaml or mysql
  auto-save-interval: 5 # minutes

  # MySQL Settings (only used if type is mysql)
  mysql:
    host: "localhost"
    port: 3306
    database: "smarteconomy"
    username: "root"
    password: ""
    table-prefix: "se_"

# Messages
# Available PlaceholderAPI placeholders (can be used if PlaceholderAPI is installed):
# %smarteconomy_balance% - Raw balance (e.g. "100.50")
# %smarteconomy_balance_formatted% - Formatted balance with symbol (e.g. "$100.50")
# %smarteconomy_balance_short% - Short format (e.g. "1.5K")
# %smarteconomy_currency_symbol% - Currency symbol (e.g. "$")

messages:
  prefix: "&8[&aSmartEconomy&8] &r"

  # Balance Messages
  balance-self: "&aYour balance: &e%smarteconomy_balance_formatted%"
  # Alternative: "&aYour balance: &e%symbol%%balance%"
  balance-other: "&a%player%'s balance: &e%smarteconomy_balance_formatted%"
  # Alternative: "&a%player%'s balance: &e%symbol%%balance%"

  # Pay Messages
  pay-sent: "&aYou sent &e%symbol%%amount% &ato &e%player%"
  pay-received: "&aYou received &e%symbol%%amount% &afrom &e%player%"
  pay-insufficient: "&cYou don't have enough money!"
  pay-self: "&cYou cannot pay yourself!"
  pay-invalid-amount: "&cInvalid amount! Must be positive."
  pay-player-not-found: "&cPlayer not found!"

  # Daily Messages
  daily-claimed: "&aYou claimed your daily reward of &e%symbol%%amount%&a!"
  daily-already-claimed: "&cYou have already claimed your daily reward! Try again in %time%."
  daily-disabled: "&cDaily rewards are currently disabled."

  # Balance Top Messages
  baltop-header: "&8&m--------&r &aTop 10 Richest Players &8&m--------"
  baltop-entry: "&e%position%. &a%player% &7- &e%symbol%%balance%"
  # Alternative: "&e%position%. &a%player% &7- &e%smarteconomy_balance_formatted%"
  baltop-empty: "&cNo players found in the database."

  # Economy Admin Messages
  eco-give: "&aGave &e%symbol%%amount% &ato &e%player%"
  eco-take: "&aTook &e%symbol%%amount% &afrom &e%player%"
  eco-set: "&aSet &e%player%'s &abalance to &e%symbol%%amount%"
  eco-reload: "&aConfiguration reloaded!"
  eco-invalid-player: "&cPlayer not found!"
  eco-invalid-amount: "&cInvalid amount!"
  eco-insufficient-funds: "&cPlayer doesn't have enough money!"

  # General Messages
  no-permission: "&cYou don't have permission to use this command!"
  invalid-usage: "&cInvalid usage! Use: %usage%"
  player-only: "&cThis command can only be used by players!"


? 安装

  1. 下载最新版本的 SmartEconomy、Vault 和 PlaceholderAPI。
  2. 将其放入服务器的 plugins 文件夹中。
  3. 重启服务器以生成配置文件。
  4. 根据需要编辑配置文件并重新加载。

? 提示: 将 SmartEconomy 与任何兼容 Vault 的商店或职业插件搭配使用,可获得功能齐全的经济体验。

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源