Sueta

DeathCommands

1.0

Run commands when a player dies.

·Plugin

DeathCommands
Run commands when a player dies.

Introduction
DeathCommands is a very simple, easy to customize plugin.
It will execute commands for you when a player dies.
Permissions
DeathCommands has the following permissions: (both are non-default)

  • deathcommands.bypass - The death commands will not be executed if you die.
  • deathcommands.reload - The ability to use the /dcreload command.

Configuration
The configuration can be reloaded using the /dcreload command.

Default Configuration
#
# Commands that are executed on death, by the console.
#
# Available Placeholders:
# %player% | Playername
# %death_x% | X coordinate the player died at.
# %death_y% | Y coordinate the player died at.
# %death_z% | Z coordinate the player died at.
#
# Don't forget to customize these commands, these are just examples!
#

deathcommands:
  - 'say %player% died and will be banned for 1 day!'
  - 'tempban %player% 1d You died at: X %death_x%, Y %death_y%, Z %death_z%.'
 
# No Permissions on reload message
noReloadPermsMessage: '&cYou don''t have enough permissions to execute this command.'
# Reload succeeded message.
reloadedMessage: '&aReloaded!'
Example Config - Lightning strike on death
#
# Commands that are executed on death, by the console.
#
# Available Placeholders:
# %player% | Playername
# %death_x% | X coordinate the player died at.
# %death_y% | Y coordinate the player died at.
# %death_z% | Z coordinate the player died at.
#
# Don't forget to customize these commands!
#

deathcommands:
  - 'summon lightning_bolt %death_x% %death_y% %death_z%'
 
# No Permissions on reload message
noReloadPermsMessage: '&cYou don''t have enough permissions to execute this command.'
# Reload succeeded message.
reloadedMessage: '&aReloaded!'

This plugin is using bStats to send anonymous data. Please do not disable it, it keeps developers motivated!

The review section is NOT the place to report bugs or to request features. Please take both to the GitHub issue tracker.

Similar projects

Plugin →