WARNING!! Updating from v0.1 to v1.0 and above is problematic (see Configuration)! Do not just replace the old jar! Make a backup before updating!
Description:
This plugin has a kill and a death counter based on permissions and executes console or player (killer or dead player) commands if a player reaches a specific amount of kills or deaths or on every kill or death.
Features:
- Minecraft 1.15.2 (not tested for other versions)
- Multiple separate per player kill and death counters (stored in separate player files) (see Configuration)
- UUID support
- Configurable commands with settings when and how to execute them (see Configuration)
- Command arguments (<killer>, <dead>, <kills>, <deaths>) (see Configuration)
- Configurable command sender (console, killer, dead) (see Configuration)
- Configurable permissions (see Configuration)
Configuration:
Path: plugins/KillCommands/config.yml
config.yml for v0.1
# example config
#
# commands:
# always:
# - 'console: say <name> has <kills> kills'
# - 'killer: say I have <kills> kills'
# 10:
# - 'console: say <name> has now 10 kills'# You can also use <kills> instead of 10.
# - 'killer: say I have now 10 kills'WARNING!! You have to make some changes in your config.yml if you update from v0.1 to v1.0 or newer versions. Even the player stats are incompatible between v0.1 to v1.0 or newer versions. If you need help at updating please PM me.
config.yml for v1.0
# This is an example configuration.
#
# permissions: # Specify all permissions here. Each permission has its own kill and death counter.
# - killcommands.category1 # Therefore you can use a plugin which allows permissions per world or region.
# - killcommands.category2
# commands:
# - kill: true # If true, the command will be executed on kill.
# death: false # If true, the command will be executed on death.
# permission: killcommands.category1 # Specifies which kill or death counter should be used to lookup data. The command will only be executed if the killer or the dead player has this permission.
# kills: always # The command is only executed if this number equals the number of kills of the killer or the dead player.
# deaths: always # The command is only executed if this number equals the number of deaths of the killer or the dead player.
# killer: true # On death: If true, there must be a killer to execute the command, if false, there must not be a killer, otherwise, or if this line does not exist, the command is executed anyway.
# command: 'say <killer> has killed <dead>. Kills: <kills>, deaths: <deaths>' # The command to be executed.
# executor: console # The command executor. Valid options are console, killer and dead.
# - kill: false
# death: true
# permission: killcommands.category1
# kills: always
# deaths: 1
# command: 'me I was killed for the first time. Kills: <kills>, deaths: 1'
# executor: dead
permissions:
- killcommands.category1
- killcommands.category2
commands:
- kill: true
death: false
permission: killcommands.category1
kills: always
deaths: always
killer: true
command: 'say <killer> has killed <dead>. Kills: <kills>, deaths: <deaths>'
executor: console
- kill: false
death: true
permission: killcommands.category1
kills: always
deaths: 1
command: 'me I was killed for the first time. Kills: <kills>, deaths: 1'
executor: deadv1.1 added the killer-recognition option to the configuration.
config.yml for v1.1 and v1.2
# This is an example configuration.
#
# killer-recognition: minecraft # The algorithm used to recognize the killer. Valid options are minecraft and last-damager.
# permissions: # Specify all permissions here. Each permission has its own kill and death counter.
# - killcommands.category1 # Therefore you can use a plugin which allows permissions per world or region.
# - killcommands.category2
# commands:
# - kill: true # If true, the command will be executed on kill.
# death: false # If true, the command will be executed on death.
# permission: killcommands.category1 # Specifies which kill or death counter should be used to lookup data. The command will only be executed if the killer or the dead player has this permission.
# kills: always # The command is only executed if this number equals the number of kills of the killer or the dead player.
# deaths: always # The command is only executed if this number equals the number of deaths of the killer or the dead player.
# killer: true # On death: If true, there must be a killer to execute the command, if false, there must not be a killer, otherwise, or if this line does not exist, the command is executed anyway.
# command: 'say <killer> has killed <dead>. Kills: <kills>, deaths: <deaths>' # The command to be executed.
# executor: console # The command executor. Valid options are console, killer and dead.
# - kill: false
# death: true
# permission: killcommands.category1
# kills: always
# deaths: 1
# command: 'me I was killed for the first time. Kills: <kills>, deaths: 1'
# executor: dead
killer-recognition: minecraft
permissions:
- killcommands.category1
- killcommands.category2
commands:
- kill: true
death: false
permission: killcommands.category1
kills: always
deaths: always
killer: true
command: 'say <killer> has killed <dead>. Kills: <kills>, deaths: <deaths>'
executor: console
- kill: false
death: true
permission: killcommands.category1
kills: always
deaths: 1
command: 'me I was killed for the first time. Kills: <kills>, deaths: 1'
executor: deadCommands and Permissions:
There are no commands and you have to define the permissions by yourself in the config.yml (see Configuration).
Istallation:
- Download KillCommands.zip
- Extract KillCommands.jar
- Put KillCommands.jar in your plugins folder
- Restart or reload your server
Changelog:
v0.1
- Initial version (Minecraft 1.8)
v1.0
- Updated to Minecraft 1.14.4
- Code cleanup
- Configuration improvement and changes
- Added death counter
- Added commands on death
- Added permission specific kill and death counters
- Added permission support to specific commands
- Added many options for the commands in the configuration
- Added many tags for the commands in the configuration
v1.1
- Added an alternative killer-recognition algorithm
- Added the killer-recognition option to the configuration
v1.2
- Updated to Minecraft 1.15.2
- Code cleanup
- Added api-version to plugin.yml
Source:
Extract the whole project from KillCommands.zip.
And now enjoy! Do what ever you want with this plugin.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta