This commit is contained in:
Noah
2022-05-16 01:00:33 +02:00
4 changed files with 22 additions and 10 deletions
+7
View File
@@ -47,6 +47,7 @@ public class Server
//[0] = 7: player position update
//[0] = 8: player rotation update
//[0] = 9: Save the World
//[0] = 10: Player died
private void Receive()
{
@@ -249,6 +250,12 @@ public class Server
{
world.SaveWorld();
}
//player died
if (data[0] == 10)
{
Console.WriteLine(playerNames[GetPlayerID(endPoint)] + " died! \n");
}
}
catch (Exception e)
{