S-Economy

插件

· 作者 Losterixx

一个简单且轻量级的经济系统。

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

最新 1.2.3 · 26.3 · Paper / Purpur

一键开服(送7天)

概览

S-Economy 是一款简单且轻量的经济插件,以 Vault 作为后端支持。 S-Economy 需要插件 Vault。

功能

  • 在游戏中直接重载插件
  • 可自定义消息
  • 更新检查器(在启动时和管理员加入时自动检查更新)
  • 可在 commands.yml 中切换/配置命令
  • 余额命令(别名:/balance, /bal, /money, /coins)
  • 经济命令(管理玩家余额)
  • 支付命令(向其他玩家转账)
  • 更多功能正在开发中 ...

命令

  • /s-economy about - 显示插件信息
  • /s-economy reload - 在游戏中重载插件
  • /balance - 查看自己的余额
  • /balance <player> - 查看指定玩家的余额
  • /economy give <player> <amount> - 给予玩家金钱
  • /economy take <player> <amount> - 扣除玩家金钱
  • /economy set <player> <amount> - 将玩家的金钱设置为指定金额
  • /economy reset <player> - 重置玩家的金钱
  • /economy check <player> - 检查玩家的金钱(与 /balance 相同)
  • /pay <player> <amount> - 向其他玩家发送指定金额的金钱
  • /pay * <amount> - 向所有在线玩家发送指定金额的金钱
  • /balancetop - 查看余额排名前 10 的玩家

权限

  • sEconomy.admin
  • sEconomy.command.balance.self
  • sEconomy.command.balance.other
  • sEconomy.command.eco.give
  • sEconomy.command.eco.take
  • sEconomy.command.eco.set
  • sEconomy.command.eco.reset
  • sEconomy.command.eco.check
  • sEconomy.command.pay
  • sEconomy.command.pay.all
  • sEconomy.command.balancetop
  • sEconomy.exempt.balancetop

配置文件

查看 config.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html

file-version: 1

# The prefix before every message
prefix: "<#ECC868><b>S-Economy</b> <dark_gray>⚡ <gray>"

# The messages file to use
langFile: 'english'

# Settings for the update checker
updateChecker:
  # Send a message to the console when a new version is available
  consoleMessage: true
  # Send a message to the player when a new version is available
  # This requires the permission 'sEconomy.admin' or to be an OP
  playerMessage: true

# All settings about economy
economy:
  # The name of the economy
  economyName:
    singular: "Coin"
    plural: "Coins"
  # The starting balance of new players
  startingBalance: 5000.0
  # The currency symbol
  currencySymbol: "$"
  # The format of the balance
  format: "%currencySymbol%%amount%"
  # Displayed decimals
  fractionalDigits: 2
  # The format of the balances
  decimalFormat:
    # Here you can define the format of the balance
    format: "#,###.##"
    # Here you can define the decimal separator
    # Samples:
    # 'EN' -> '1,000.00'
    # 'DE'  -> '1.000,00'
    # 'FR'  -> '1 000,00'
    locale: 'EN'

# Settings for the commands
commands:
  economy:
    # The amount completions for the /economy command
    amountCompletions: [10, 50, 100]
  pay:
    # The amount completions for the /pay command
    amountCompletions: [10, 50, 100]
    # The minimum amount of money to pay
    minAmount: 5.0
查看 commands.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html

file-version: 1

# Settings for /balance
balance:
  # Should the command be enabled?
  enabled: true
  # What aliases should be used for this command?
  aliases:
    - bal
    - balance
    - money
    - coins

# Settings for /economy
economy:
  enabled: true
  aliases:
    - econ
    - eco

# Settings for /pay
pay:
  enabled: true
  # '[]' means no aliases
  aliases: []

# Settings for /balancetop
balancetop:
  enabled: true
  aliases:
  - baltop
  - moneytop
  - coinstop
查看 english.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html

file-version: 1

# General messages
general:
  noPlayer: "<gray>You <red>must be a player<gray> to execute this command!"
  noPerms: "<gray>You <red>do not have permission<gray> to execute this command!"
  playerNotFound: "<gray>The given player <red>could not be found<gray>!"

# Other messages
other:
  updateChecker: "<gray>An <yellow>update <gray>is available! You are using version <red>v%current-version%<gray>, the latest version is <green>%latest-version%<gray>!"

# 命令消息
commands:
  # /s-economy 命令的消息(主插件命令)
  s-economy:
    usage: "<gray>请使用 <red>/s-economy <about/reload><gray>!"
    about: "<gray>S-Economy v%version% <dark_gray>- <gray>%author%"
    reload:
      reloading: "<yellow>正在重新加载 <gray>S-Economy..."
      reloaded: "<green>成功重新加载 <gray>S-Economy! <dark_gray>(%time%ms)"
      error: "<gray>重新加载 S-Economy 时发生<red>错误<gray>!请检查控制台以获取详细信息。"
  balance:
    usage: "<gray>请使用 <red>/balance <player><gray>!"
    self: "<gray>你的余额为 <yellow>%balance%<gray>!"
    other: "<gray><white>%player% <gray>的余额为 <yellow>%balance%<gray>!"
  economy:
    usage: "<gray>请使用 <red>/economy <give/take/set/reset/check> <player> <?amount><gray>!"
    noAmount: "<gray>提供的金额<red>无效<gray>!"
    give:
      usage: "<gray>请使用 <red>/economy give <player> <amount><gray>!"
      success: "<gray>你已向 <white>%player% <yellow>发放了 %balance%<gray>!"
      all: <gray>你已向<white>所有玩家 <yellow>发放了 %balance%<gray>!
    take:
      usage: "<gray>请使用 <red>/economy take <player> <amount><gray>!"
      success: "<gray>你已从 <white>%player% <yellow>处扣除了 %balance%<gray>!"
      all: <gray>你已从<white>所有玩家 <yellow>处扣除了 %balance%<gray>!
    set:
      usage: "<gray>请使用 <red>/economy set <player> <amount><gray>!"
      success: "<gray>你已将 <white>%player% <gray>的余额设置为 <yellow>%balance%<gray>!"
      all: <gray>你已将<white>所有玩家 <gray>的余额设置为 <yellow>%balance%<gray>!
    reset:
      usage: "<gray>请使用 <red>/economy reset <player><gray>!"
      success: "<gray>你已重置 <white>%player%<gray> 的余额!"
      all: <gray>你已重置<white>所有玩家<gray> 的余额!
    check:
      usage: "<gray>请使用 <red>/economy check <player><gray>!"
      success: "<gray><white>%player% <gray>的余额为 <yellow>%balance%<gray>!"
      allFailed: <gray>你<red>无法一次性查看所有玩家的余额<gray>!请指定一名玩家。
  pay:
    usage: "<gray>请使用 <red>/pay <player/*> <amount><gray>!"
    noAmount: "<gray>提供的金额<red>无效<gray>!"
    notEnoughMoney: "<gray>你<red>没有足够的钱<gray>!"
    selfPay: "<gray>你<red>不能给自己付款<gray>!"
    success:
      player: "<gray>你已向 <white>%player% <yellow>支付了 %balance%<gray>!"
      target: "<gray>你从 <white>%player%<gray> 处收到了 <yellow>%balance%<gray>!"
      all: "<gray>你已向<white>所有玩家 <yellow>支付了 %balance%<gray>!"
View german.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html

file-version: 1

# 通用消息
general:
  noPlayer: "<gray>只有<red>玩家<gray>才能执行此操作!"
  noPerms: "<gray>你<red>没有权限<gray>使用此命令!"
  playerNotFound: "<gray>未找到指定的<red>玩家<gray>!"

# 其他消息
other:
  updateChecker: "<gray>有<yellow>可用更新<gray>!当前版本为 <red>v%current-version%<gray>,最新版本为 <green>%latest-version%<gray>!"

# 命令消息
commands:
  # /s-economy 命令的消息(插件的主命令)
  s-economy:
    usage: "<gray>请使用 <red>/s-economy <about/reload><gray>!"
    about: "<gray>S-Economy v%version% <dark_gray>- <gray>%author%"
    reload:
      reloading: "<gray>S-Economy <yellow>正在重新加载<gray>..."

reloaded: "<gray>S-Economy 已成功重新加载<gray>!<dark_gray>(%time%ms)"
      error: "<red>重新加载 S-Economy 时出错<gray>!请检查控制台以获取详细信息。"
  balance:
    usage: "<gray>请使用 <red>/balance <玩家><gray>!"
    self: "<gray>你的账户余额为 <yellow>%balance%<gray>!"

other: "<gray>Der Kontostand von <white>%player% <gray>beträgt <yellow>%balance%<gray>!"
  economy:
    usage: "<gray>Bitte nutze <red>/economy <give/take/set/reset/check> <Spieler> <?Betrag><gray>!"
    noAmount: "<gray>Der angegebene Betrag ist <red>ungültig<gray>!"
    give:
      usage: "<gray>Bitte nutze <red>/economy give <Spieler> <Betrag><gray>!"

success: "<gray>你给了 <white>%player% <yellow>%balance%<gray>!"
    take:
      usage: "<gray>请使用 <red>/economy take <玩家> <金额><gray>!"
      success: "<gray>已从 <white>%player% <yellow>%balance%<gray> 中扣除!"
    set:
      usage: "<gray>请使用 <red>/economy set <玩家> <金额><gray>!"

success: "<gray>已将玩家 <white>%player%<gray> 的余额设置为 <yellow>%balance%<gray>!"
    reset:

usage: "<gray>请使用 <red>/economy reset <玩家><gray>!"
      success: "<gray>你已重置了 <white>%player%<gray> 的账户余额!"
    check:
      usage: "<gray>请使用 <red>/economy check <玩家><gray>!"
      success: "<gray><white>%player%<gray> 的账户余额为 <yellow>%balance%<gray>!"
  pay:

用法:"<gray>请使用 <red>/pay <玩家/*> <金额><gray>!"

noAmount: "<gray>指定的金额<red>无效<gray>!"
    notEnoughMoney: "<gray>你的<red>资金不足<gray>!"
    selfPay: "<gray>你<red>不能给自己转账<gray>!"
    success:
      player: "<gray>你已向 <white>%player% <yellow>%balance%<gray> 转账!"
      target: "<gray>你从 <white>%player%<gray> 处获得了 <yellow>%balance%<gray>!"

all: "<gray>你给所有玩家 <white>%balance%<gray> 发送了货币!"

联系方式

如果您遇到任何问题或漏洞,或者有新增功能的需求,请通过 Discord 与我联系,或加入我的 Discord 服务器。

我的 Discord 用户名是 Losterixx。

我的 Discord 服务器:链接

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源