• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

KillerMoney

来自Minecraft插件百科
Sheep-realms留言 | 贡献2021年5月18日 (二) 06:04的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索
KillerMoney
外文名KillerMoney
作者xel / diecode
插件类型Spigot / CraftBukkit
最新版本4.2.0
兼容服务端1.8-1.12
源地址http://dev.bukkit.org/bukkit-plugins/KillerMoney

KillerMoney是一款由xel和diecode共同开发的玩家击杀实体给予或收取玩家资金的Bukkit插件。

特点

  • 在玩家击杀实体时给予或收取玩家指定费用, 或是 获得/失去 配置内区间内的随机数。
  • 在PVP中杀人可获得或失去金钱。
  • 完全自定义生物死亡掉落金钱。
  • 在击杀生物时执行指令。
  • 阻止杀死从刷怪蛋或刷怪笼内刷出的生物来获得金钱。
  • 支持多世界实体不同金钱掉落。
  • 完全模块化, 可自定义的配置!
  • 可自定义的信息。
  • 每个实体都可以用权限分级获得不同的钱数。
  • 多倍金钱掉落权限。
  • 限制服务器的经济。
  • 公开的API。
  • 支持MineChart。

安装

  1. 如果你已经安装了 KillerMoney 1.x, 2.x 或 3.x 的旧版本, 你需要删除所有旧的文件配置。
  2. 安装 VAULT 和经济插件 (例如 Essentials, BOSEconomy, iConomy.)。
  3. 下载最新版本的KillerMoney并放到你的服务器插件文件夹内。
  4. 重启你的服务器来生成新的配置文件。
  5. 配置 config.yml和entities.yml 并在lang.yml内设置你的语言。
  6. 完成。

指令

  • /km help
  • /km info
  • /km limit
  • /km multiplier <set, get, reset>
  • /km reload

权限

  • km.admin | 管理员指令: limit, multiplier, reload
  • km.bypass.moneylimit |忽略金钱限制
  • km.bypass.itemlimit |忽略物品限制
  • km.bypass.commandlimit |忽略指令限制
  • km.bypass.cashtransferlimit |忽略金钱转换限制
  • km.money.multiplier.NAME_FROM_CONFIG |金钱倍数
  • km.moneylimit.multiplier.NAME_FROM_CONFIG |金钱倍数限制

配置

config.yml

<spoiler>

# 可以在 https://github.com/diecode/KillerMoney/blob/master/docs/Config.md 看到详细配置介绍
# 也可以在 http://mineplugin.org/KillerMoney 看到汉化配置介绍
# 不要修改版本号
Config-version: 1
Check-update: true
Global-settings:
  Money:
    Decimal-places: 2
    Item-drop:
      Enabled: false
      Item-name: '&c${amount}'
      Item-material: GOLD_INGOT
      Anyone-can-pick-it-up: true
  Farming:
    Disable-spawner-farming: true
    Disable-spawner-egg-farming: false
  General:
    Message-method: CHAT
    Allowed-gamemodes: SURVIVAL, CREATIVE
  Limit:
    Reset-time: 24
    Reached-limit-message: true
Configurable-permissions:
  Money-multipliers:
    donator: 1.5
    vip: 2
    elite: 2.5
  Limit-multipliers:
    donator: 1.5
    vip: 2
    elite: 2.5
Hook:
  MobArena:
    Enabled: false
    Disable-rewards-in-arena: true

</spoiler>

配置手册

Config-version: 1

插件版本号 不要修改

Check-update: true

插件更新检测

Global-settings:
    Money:
        Decimal-places: 2

货币小数的位数 默认保留两位小数

Global-settings:
    Money:
        Item-drop:
            Enabled: false   #启用或关闭物品掉落机制
            Item-name: "&c${amount}" #物品名格式
            Item-material: GOLD_INGOT #掉落的物品ID
            Anyone-can-pick-it-up: true  #是否任何人都可以捡起 或是只有杀死这种生物的玩家才能捡起
Global-settings:
    Farming:
        Disable-spawner-farming: true  #是否关闭刷怪笼生成的怪物掉落金钱
        Disable-spawner-egg-farming: false  #是否关闭刷怪蛋生成的怪物掉落金钱


Global-settings:
    General:
        Message-method: CHAT  #发送杀怪掉钱信息的方式 可用数值: "CHAT", "ACTION_BAR" or "DISABLED"(关闭)
        Allowed-gamemodes: SURVIVAL, CREATIVE  #会显示信息的游戏模式


Limit:
    Reset-time: 24  #可获得最大钱数限制的重置时间
    Reached-limit-message: true  #当玩家达到上限时发送信息提醒玩家
Configurable-permissions:
    Money-multipliers:
        donator: 1.5
        vip: 2
        elite: 2.5
    Limit-multipliers:
        donator: 1.5
        vip: 2
        elite: 2.5

给予不同权限的玩家不同的获得的金钱倍数.
例如donator的倍数为1.5倍 拥有km.money.multiplier.donator权限的玩家即可获得1.5倍掉率.
限制倍数上同
其他分组的权限格式为km.moneylimit.multiplier.组名 你可以改为你想要的权限组名,例如:

Configurable-permissions:
    Money-multipliers:
        builder: 1.5
        vip: 2
        elite: 2.5
        default: 1
    Limit-multipliers:
        donator: 1.5
        vip: 2
        elite: 2.5
        default: 1

Hook: 
    MobArena:
        Enabled: false  #是否关联怪物竞技场插件并在竞技场内关闭金钱奖励
        Disable-rewards-in-arena: true

entities.yml

本份配置只适用于最新版本(4.2.0) 数值为本人服务器所用 可自行修改相关数值 <spoiler>

# 这份配置不不包括所有特性. 你可以在 https://github.com/diecode/KillerMoney/blob/master/docs/Entities.md 看到详细介绍
# 如果你不想用某种特性,你可以关闭这一特性.

# Support on
# - https://dev.bukkit.org/projects/killermoney
# - https://www.spigotmc.org/resources/killermoney.485/

BAT:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 1 ? 100
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
BLAZE:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 1 ? 30
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
CAVE_SPIDER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 1 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
CHICKEN:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -5 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
COW:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
CREEPER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 15 ? 45
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
DONKEY:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 20
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
ELDER_GUARDIAN:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 24 ? 80
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
ENDER_DRAGON:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 1500 ? 3000
        Custom-commands:
            Enabled: true
            Commands:
                '1':
                    Command: 'say {player} 终结了一条末影龙的生命!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
ENDERMAN:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 1 ? 5
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
ENDERMITE:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 1 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
EVOKER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 20 ? 70
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
GHAST:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 40 ? 100
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
GIANT:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 80 ? 120
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
GUARDIAN:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 5 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: true
            Value: 6 ? 10
            Chance: 100%
HORSE:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -15 ? 15
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
HUSK:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 12 ? 25
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
IRON_GOLEM:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -1 ? 55
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
LLAMA:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -1 ? 30
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
MULE:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 20
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
MUSHROOM_COW:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -50 ? 100
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
OCELOT:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -100 ? 1
        Custom-commands:
            Enabled: true
            Commands:
                '1':
                    Command: 'say {player} 残忍地杀害了一只喵!'
                    Chance: 1%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
PIG:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -12 ? 13
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
PIG_ZOMBIE:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 1 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: true
            Value: 4 ? 8
            Chance: 100%
PLAYER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀人了!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: true
            Value: 1 ? 10
            Chance: 100%
        Cash-transfer:
            Enabled: false
            Percent: 5%
            Max-amount: 5000
            Chance: 100%
POLAR_BEAR:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -20 ? 66
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
RABBIT:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -30 ? 10
        Custom-commands:
            Enabled: true
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只小兔兔,真是太残忍了!'
                    Chance: 1%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SHEEP:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 6
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SHULKER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 30 ? 70
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SILVERFISH:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 5 ? 13
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SKELETON:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 17 ? 48
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SKELETON_HORSE:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 80
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SLIME:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 1 ? 12
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SNOWMAN:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 11
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SPIDER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 8 ? 29
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
SQUID:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 8
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
STRAY:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 30 ? 60
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
VEX:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 28 ? 64
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
VILLAGER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -200 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
WITCH:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 27 ? 72
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: true
            Value: 20 ? 40
            Chance: 100%
WITHER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 2333 ? 4321
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
WITHER_SKELETON:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 10 ? 20
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
WOLF:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 20
        Custom-commands:
            Enabled: true
            Commands:
                '1':
                    Command: 'say {player} 残忍地杀害了一条单身狗!'
                    Chance: 1%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
ZOMBIE:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: 11 ? 25
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
ZOMBIE_HORSE:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -10 ? 10
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%
ZOMBIE_VILLAGER:
    '*':
        Money:
            Enabled: true
            Chance: 100%
            Value: -1 ? 33
        Custom-commands:
            Enabled: false
            Commands:
                '1':
                    Command: 'say {player} 杀死了一只生物!'
                    Chance: 100%
        Custom-item-drop:
            Enabled: false
            Keep-default-items: false
            Items:
                '1':
                    ItemStack:
                        ==: org.bukkit.inventory.ItemStack
                        type: GOLD_NUGGET
                    Random-amount: 1 ? 5
                    Chance: 100%
        Custom-exp-drop:
            Enabled: false
            Value: 1 ? 100
            Chance: 100%

</spoiler>

实体配置手册

PLAYER:

实体名
你可以在这里看到所有的实体名

 '*':

表示启用的世界名,*则代表所有的世界.
多世界可以用逗号分隔,例如:

PLAYER:
    'world':
        Money:
            Enabled: true
            Chance: 75%
            Value: 100
    'world_nether, world_the_end':
        Money:
            Enabled: true
            Chance: 100%
            Value: 200
    'mine':
        Money:
            Enabled: true
            Chance: 5%
            Value: 1500

金钱奖励部分

Money:
    Enabled: true    启用该功能
    Chance: 100%    获得金钱的几率
    Value: 100 ? 200   获得的钱数的区间,你也可以改为单个数字 例如100. 你也可以设置为负数,如-100 杀怪会扣玩家100元
    Division-method: 'LAST_HIT'   可用数值:"LAST_HIT" 或 "SHARED"  第一项为给予该生物最后一击的玩家获得奖励,第二项则为伤害过该生物的玩家都会获得奖励
    Permission: 'km.custom.permission'   获得金钱所需权限 可自定义权限名
    Limit: 2000   可获得金钱上限 如果玩家达到上限将无法再获得金钱,除非服务器重启或管理员重置限制 这可以有效地防止玩家在刷怪塔过快赚钱

自定义指令奖励

Custom-commands:
    Enabled: true   是否启用
    Run-method: 'ALL'   执行方式 ALL为运行所有指令 RANDOM为随意一个指令
    Commands:
        '1': 第一条指令
            Command: 'say {player} 杀死了一只生物!'   执行的指令 支持变量
            Chance: 12.5%    执行该指令的几率
            Permission: 'km.custom.permission'    执行该指令所需权限 可以自定义
            Limit: 10 执行指令次数上限
        '2': 第二条指令 同上
            Command: 'give {player} DIAMOND 5'   给予玩家5个钻石
            Chance: 0.5%
            Permission: 'km.custom.permission'
            Limit: 15

自定义物品掉落

Custom-item-drop:
    Enabled: true 同上自定义指令奖励
    Keep-default-items: false 是否保留默认的原版物品掉落
    Run-method: 'ALL' 同上
    Items: 
        '1':
            ItemStack:
                ==: org.bukkit.inventory.ItemStack
                type: GRASS  物品ID
            Random-amount: 1 ? 20  随机获得1-20个
            Chance: 100% 获得几率
            Permission: 'km.custom.permission' 获得所需权限
            Limit: 200 获得上限
        '2': 同上
            ItemStack:
                ==: org.bukkit.inventory.ItemStack
                type: DIAMOND_SWORD
                amount: 32
            Chance: 80%
            Permission: 'km.custom.permission'
            Limit: 200

一些物品的配置示例:
投掷药水:

ItemStack:
    ==: org.bukkit.inventory.ItemStack
    type: POTION
    damage: 8235

羊的刷怪蛋:

ItemStack:
    ==: org.bukkit.inventory.ItemStack
    type: MONSTER_EGG
    damage: 91

金锭:

ItemStack:
    ==: org.bukkit.inventory.ItemStack
    type: GOLD_INGOT   #金锭的ID
    amount: 32   #数量
    meta:
        ==: ItemMeta
        meta-type: UNSPECIFIC
        display-name: "§c纯金" #物品展示名
        lore:  #描述
        - "§2这是块纯金"

附魔铁剑:

ItemStack:
    ==: org.bukkit.inventory.ItemStack
    type: IRON_SWORD
    meta:
        ==: ItemMeta
        meta-type: UNSPECIFIC
        enchants:
            KNOCKBACK: 1     #击退 I
            FIRE_ASPECT: 1   #火焰附加 I

自定义经验掉落

Custom-exp-drop:   #同上自定义内容
    Enabled: true  #是否启用
    Chance: 100%  #获得几率
    Value: 100 ? 200  #可获得的经验区间
    Permission: 'km.custom.permission' #可自定义的权限
    Limit: 1000  #可获得的经验上限

自定义PVP奖励

Cash-transfer:
    Enabled: true  #是否启用
    Percent: 25% #金钱转化率
    Max-amount: 5000 #单次击杀玩家获得的最大钱数(可选)
    Chance: 100%  #触发几率 (可选)
    Division-method: 'LAST_HIT' #触发方式 同自定义金钱奖励部分(可选)
    Permission: 'km.custom.permission'  #自定义权限
    Limit: 10000  #可获得的金钱上限(可选)

lang.yml

<spoiler>

GENERAL:
  PREFIX: '&7[&a击杀奖励&7] > '
  CURRENCY: $
  YOU_KILLED_AN_ENTITY_AND_EARN_MONEY: '&7你杀死了(&a{0}&7, &a{1}&7). 你获得了 &a${2}&7.'
  YOU_KILLED_AN_ENTITY_AND_LOSE_MONEY: '&7你杀死了(&a{0}&7, &a{1}&7). 你失去了 &a${2}&7.'
  YOU_PICKED_UP_MONEY: '&7你获得了 &a${0}&7.'
  CONFIGS_ARE_RELOADED: '&7已重载配置'
  LIMIT_REACHED: '&a达到上限. &7上限将在 {0} 后重置'
  YOU_KILLED_A_PLAYER: '&7你杀死了 (&a{0}&7). 你获得了 &a${1}&7.'
  YOU_KILLED_BY_PLAYER: '&7你被 (&a{0}&7) 杀死了. 你失去了 &a${1}&7.'
MULTIPLIER:
  SET_NEW_MULTIPLIER_VALUE: '&7你把倍数设置为 &a{0}x&7. 持续时间: &a{1}'
  GET_CURRENT_MULTIPLIER: '&7现在的倍数是 &a{0}x&7. 持续时间: &a{1}'
  CANCEL_CUSTOM_MULTIPLIER: '&7你取消了自定义倍数. 变为默认值 (&a1x&7)'
  THERE_IS_NOT_CUSTOM_MULTIPLIER_SET: '&7没有设置自定义倍数'
  THE_MULTIPLIER_MUST_BE_GREATER_THAN_ZERO: '&7倍数必须大于0'
  THE_MINUTE_MUST_BE_GREATER_THAN_ZERO: '&7时间必须大于 0'
  INVALID_VALUE: '&7无效数值: 倍数和分钟必须是大于0的有效数字'
COMMANDS:
  SHARED_THIS_COMMAND_ONLY_USABLE_BY_PLAYER: '&7这一指令只能由玩家使用'
  SHARED_THIS_COMMAND_ONLY_USABLE_BY_CONSOLE: '&7这一指令只能由控制台使用'
  SHARED_YOU_HAVE_NOT_ENOUGH_PERMISSION: '&7你没有权限 (&a{0}&7)'
  SHARED_INVALID_VALUE: '&7无效数值: 必须是on或off'
  KM_MESSAGES_ENABLED: '&7击杀信息 &a已启用&7.'
  KM_MESSAGES_DISABLED: '&7击杀信息 &c已关闭&7.'
  KM_MESSAGES_CURRENTLY_ENABLED: '&7击杀信息已启用. 你可以输入 &a/km enable-messages off 来关闭'
  KM_MESSAGES_CURRENTLY_DISABLED: '&7击杀信息已关闭. 你可以输入 &a/km enable-messages on 来开启'
  KMADMIN_LIMIT_RESET: '&7你重置了所有的限制时间为 0.'
  KMADMIN_COMMAND_MULTIPLIER_USAGE: '&7用法: &a/km multiplier &7<&aset&7, &aget&7,
    &acancel&7>'
  KMADMIN_COMMAND_MULTIPLIER_SET_USAGE: '&7用法: &a/km multiplier set &7<&a倍数&7> <&a分钟&7>'
  KMADMIN_COMMAND_LIMIT_USAGE: '&7参数错误. 指令: &a/km limit reset'
ENTITIES:
  BAT: 蝙蝠
  BLAZE: 烈焰人
  CAVE_SPIDER: 洞穴蜘蛛
  CHICKEN: 鸡
  COW: 牛
  CREEPER: 苦力怕
  DONKEY: 驴
  ELDER_GUARDIAN: 远古守护者
  ENDER_DRAGON: 末影龙
  ENDERMAN: 末影人
  ENDERMITE: 末影螨
  EVOKER: 唤魔者
  GHAST: 恶魂
  GIANT: 巨人
  GUARDIAN: 守护者
  HORSE: 马
  HUSK: 尸壳
  IRON_GOLEM: 铁傀儡
  LLAMA: 羊驼
  MAGMA_CUBE: 岩浆怪
  MULE: 骡
  MUSHROOM_COW: 蘑菇牛
  OCELOT: 豹猫
  PIG: 猪
  PIG_ZOMBIE: 姜丝猪人
  PARROT: 鹦鹉
  PLAYER: 玩家
  POLAR_BEAR: 北极熊
  RABBIT: 菟子
  SHEEP: 羊
  SHULKER: 潜影贝
  SILVERFISH: 蠹虫
  SKELETON: 骷髅
  SKELETON_HORSE: 骷髅马
  SLIME: 史莱姆
  SNOWMAN: 雪人
  SPIDER: 蜘蛛
  SQUID: 鱿鱼
  STRAY: 尸壳
  VEX: 不明飞行物
  VILLAGER: 村民
  VINDICATOR: 卫道士
  WITCH: 女巫
  WITHER_SKELETON: 凋灵骷髅
  WOLF: 单身狗
  ZOMBIE: 姜丝
  ZOMBIE_HORSE: 姜丝马
  ZOMBIE_VILLAGER: 姜丝村民

</spoiler>

API

事件

  • KMCashTransferProcessorEvent
  • KMCCommandExecutionEvent
  • KMCItemDropEvent
  • KMEarnMoneyCashTransferDepositEvent
  • KMEarnMoneyDepositEvent
  • KMEarnMoneyPickedUpEvent
  • KMGlobalMultiplierChangeEvent
  • KMLimitReachedEvent
  • KMLoseMoneyCashTransferEvent
  • KMLoseMoneyEvent
  • KMMoneyItemDropEvent
  • KMMoneyProcessorEvent
  • KMSendActionBarMessageEvent
  • KMSendMessageEvent

作者的话

如果你想要捐赠我的话你可以打开我的steam页面 送我一些游戏兑换码

我也喜欢玩CS:GO之类的游戏

注释与外部链接