Home›Java›Mods›KillCommands
ModsJava

KillCommands

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
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:

Configuration:
Path: plugins/KillCommands/config.yml
Spoiler: config.yml for v0.1
Code (YAML):
# 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.
Spoiler: config.yml for v1.0
Code (YAML):
# 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
: dead
 
v1.1 added the killer-recognition option to the configuration.
Spoiler: config.yml for v1.1 and v1.2
Code (YAML):
# 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
: dead
 

Commands and Permissions:
There are no commands and you have to define the permissions by yourself in the config.yml (see Configuration).

Istallation:

Changelog:
v0.1
v1.0
v1.1
v1.2
Source:
Extract the whole project from KillCommands.zip.

And now enjoy! Do what ever you want with this plugin.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

KillCommands is a free Minecraft Java mod. Downloaded 5,326 times (via Spigot). Download it and open it directly in the game.

Explore more