mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Kill messages
This commit is contained in:
parent
09385daf60
commit
6a0b3c0e9a
1 changed files with 13 additions and 1 deletions
|
|
@ -69,8 +69,20 @@ class PlayerAPI{
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
switch($data["cause"]){
|
switch($data["cause"]){
|
||||||
|
case "cactus":
|
||||||
|
$message .= " was pricked to death";
|
||||||
|
break;
|
||||||
|
case "lava":
|
||||||
|
$message .= " tried to swim in lava";
|
||||||
|
break;
|
||||||
|
case "fire":
|
||||||
|
$message .= " burned to death";
|
||||||
|
break;
|
||||||
|
case "suffocation":
|
||||||
|
$message .= " suffocated in a wall";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$message .= " was killed";
|
$message .= " died";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue