DeathCommands

Allow your players and console to execute commands after death of player!
Instalation
1, download Skript
2, restart the server
3, Open the file skript - scripts
4, put file DeathCommands.sk into plugins/Skript/scripts
5, write: /sk reload DeathCommands
6, Completed!
This Skript has only 2 commands!
/deathcommand <add/remove> <death cause> <console/player> <command>
/deathcommand tutorial - show tutorial how to configure skript
1 permission:
deathcommands.admin
How it works?
This script check death cause of player and then it will execute all comands which are included. If there are commands executable by players, they will be maked after respawn
Tutorial
example number 1
Spoiler
Player will be banned for 30 minutes after death by explosion.
/deathcommand add explosion console tempban <player> 30 minutes You was banned for die by Explosion on <location>!
Explaining:
add = add command
explosion = death cause, for more informations look down, there are all damage causes
console = command will be executed by console, you can use console or player here.
and more - this is the command which will be executed
example number 2
Spoiler
Player will lost 30$ after death by poison.
/deathcommand add poison console eco take <player> 30
Explaining:
add = add command
poison = death cause, for more informations look down, there are all damage causes
console = command will be executed by console, you can use console or player here.
and more - this is the command which will be executed
example number 3
Spoiler
Server will write broadcast of death of player on death by fall
/deathcommand add fall console broadcast &4<player> died on location <location>!
Explaining:
add = add command
fall = death cause, for more informations look down, there are all damage causes
console = command will be executed by console, you can use console or player here.
and more - this is the command which will be executed
example number 4
Spoiler
Player will teleport herself to warp on died (on respawn)
/deathcommand add fall player warp death
Explaining:
add = add command
fall = death cause, for more informations look down, there are all damage causes
player = command will be executed by player, you can use console or player here.
and more - this is the command which will be executed
example number 5
Spoiler
Delete death commands which is executed by console when the player dies by lava. This command has ID 1
/deathcommand remove fall console 1
Explaining:
remove = remove command
fall = death cause, for more informations look down, there are all damage causes
console = find command which is executed by console
1 = ID. To check ID write this command without ID.
Placeholders
You can use these placeholders in commands:
<location> - location of victim
<victim> - victim (who died)
<attacker> - who killed victim
<player> - please, use this in command of player,
because there is "on respawn", not on
"on death", so there is not attacker and victim.
Death causes
- poison
- attack
- fall
- drowning
- fire
- unknown
- lava
- projectile
- wither
- explosion
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
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.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta