public void Handle(NetworkManager nm, Bot core) { if (PlayerId != -1) { var newEnt = new Entity(PlayerName, PlayerId, X, Y, Z, Yaw, Pitch); core.Entities.Add(PlayerId, newEnt); core.RaisePlayerJoin(newEnt); } else { core.Location.X = X; core.Location.Y = Y; core.Location.Z = Z; core.Position[0] = Yaw; core.Position[1] = Pitch; core.raiseDebugMessage("Set Location Via SpawnPlayer"); core.RaiseYouMoved(); } }