Simple plugin to execute commands when players death or respawn.
How to install?
Put the DeathEvents.jar to /plugins folder
Start or Restart the server (To restart recommended to use /stop)
Commands
/deathevents (Nothing)
/deathevents reload -> Reload the config and messages files
Permissions
/deathevents -> deathevents.admin
/deathevents reload -> deathevents.admin
Default config file
Code (YAML):
## You must leave one of the two activated # Use %player% to use sender name respawn_events:
enable: true
commands: - 'say Respawn 1'
- 'say Respawn 2'
- 'gamemode creative
%player%' - 'tellraw @a
{"text":
"You have Respawned! Commands executed",
"color":
"red"}'
death_events:
enable: true
commands: - 'say Death 1'
- 'say Death 2'
- 'gamemode creative
%player%' - 'tellraw @a
{"text":
"You have died! Commands executed",
"color":
"red"}'