mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
parent
e71d0e2383
commit
3adf7c4468
2 changed files with 6 additions and 0 deletions
|
|
@ -320,6 +320,11 @@ namespace MinecraftClient
|
||||||
/// <param name="name">Name of the player</param>
|
/// <param name="name">Name of the player</param>
|
||||||
public virtual void OnPlayerLeave(Guid uuid, string name) { }
|
public virtual void OnPlayerLeave(Guid uuid, string name) { }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Called when the player deaths
|
||||||
|
/// </summary>
|
||||||
|
public virtual void OnDeath() { }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called when the player respawns
|
/// Called when the player respawns
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -2027,6 +2027,7 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
ConsoleIO.WriteLogLine("You are dead. Type /respawn to respawn.");
|
ConsoleIO.WriteLogLine("You are dead. Type /respawn to respawn.");
|
||||||
}
|
}
|
||||||
|
DispatchBotEvent(bot => bot.OnDeath());
|
||||||
}
|
}
|
||||||
|
|
||||||
DispatchBotEvent(bot => bot.OnHealthUpdate(health, food));
|
DispatchBotEvent(bot => bot.OnHealthUpdate(health, food));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue